path_position

The calling instance's position on its path

语法:

path_position;


返回: Real(实数)


描述

This function can be used to get or to set the position of an instance along a path. 该值在0到1之间,因此如果此值为0.5,则实例将被移到路径的正中间。


例如:

path_position = random(1);

The above code sets the instance to a random position anywhere on the current path.


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