part_system_angle

This function changes the angle that the given particle system is rendered with.

 

Syntax:

part_system_angle(ind, angle);

ArgumentTypeDescription
indParticle System InstanceThe index of the particle system to change.
angleRealThe new angle of the particle system.

 

Returns:

N/A

 

Example:

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.