path_speed


Description

You can use this function to get or to set the speed of a path after it has been started. you can use negative values to signify that the instance should follow the path in reverse.


Syntax:

path_speed;


Returns:

Real


Example:

path_speed = -1 + random(2);

The above code will set the instance to travel the path at a random speed between -1 and 1.