This function changes the angle that the given particle system is rendered with.
part_system_angle(ind, angle);
Argument | Type | Description |
---|---|---|
ind | Particle System Instance | The index of the particle system to change. |
angle | Real | The new angle of the particle system. |
N/A
var _mouse_dir = point_direction(x, y, mouse_x, mouse_y);
part_system_angle(pt_sys, _mouse_dir);
This gets the direction from the position of the instance towards the mouse cursor, and applies that as the angle of a particle system.