path_speed

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

语法:

path_speed;


Returns: Real.


描述

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.


例如:

path_speed = -1 + random(2);

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


上一页:路径
下一页: path_scale
© Copyright YoYo Games Ltd. 2018 All Rights Reserved