path_speed

The calling instance's speed at which it's following its path (in pixels per step).

Syntax:

path_speed;


Returns: Real.


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.


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.


Back: Paths
Next: path_scale
© Copyright YoYo Games Ltd. 2018 All Rights Reserved