path_delete_point

Deletes a point from an existing path.

Syntax:

path_delete_point(ind, n);


Argument Description
index The index of the path to delete a point from.
n The defining point to delete.


Returns: N/A


Description

With this function you can remove a point from the specified path. Path points are numbered from 0 so the first point is always the 0th point and the last path point will be path_get_number() - 1.


Example:

path_delete_point(mypath, path_get_number(mypath) - 1);

This would delete the last point on the path indexed in the variable "mypath".


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