path_reverse

Reverses the given path.

Syntax:

path_reverse(index);


Argument Description
index The index of the path to change.


Returns: N/A


Description

With this function you can reverse the order in which the individual path points are numbered, so, for example, if the path has 5 points, point 0 would become point 4, point 1 would be point 3 and point 2 would not be changed. The actual position of the points remains the same, only the order in which they are processed is changed. This function changes the actual path resource, and so will permanently affect how the path is used by all instances in the game from the moment the function is used until the end of the game.


Example:

path_reverse(path0);

This would reverse the order in which all points on the path indexed in "path0" are processed.


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