path_get_number

Returns the number of points on a path

语法:

path_get_number(index);


参数 描述
index The index of the path to check.


Returns: Real.


描述

This function can be used to return the number of points on a path.


例如:

if path_get_number(ai_path) > 1    {    path_start(ai_path, 4, 3, 0);    }

The above code checks to see if a path has more than one point on it and if so it starts the instance moving along that path.


上一页: Path Information
下一页: path_get_point_speed
© Copyright YoYo Games Ltd. 2018 All Rights Reserved