path_clear_points

Deletes all the points in a given path.

语法:

path_clear_points(index);


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


返回: N/A(无返回值)


描述

With this function you can remove all point definitions from a path, effectively making an "empty" path. This does not delete the path, for that you should use path_delete.


例如:

if path_get_number(mypath) > 0
   {
   path_clear_points(mypath);
   }

The above code checks to see if there are any points on the path indexed in the variable "mypath" and if there are, it clears the path.


上一页: Changing Paths
下一页: path_append
© Copyright YoYo Games Ltd. 2018 All Rights Reserved