path_rotate(index, angle);
Argument | Description |
---|---|
index | The index of the path to flip. |
angle | The angle of rotation degrees. |
Returns: N/A
You can use this function to rotate a given path around its
center. Remember that in GameMaker: Studio (unless you are
using physics) the angles are calculated counter-clockwise, so
rotating the path by 90 degrees would rotate the path to the
left. 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.
path_rotate(path0, 90);
This would rotate path0 90 degrees counterclockwise.