part_system_depth

Sets the depth of the particle system.

Syntax:

part_system_depth( ind, depth );


Argument Description
ind The index of the particle system to change.
depth The depth at which to set the particle system.


Returns: N/A


Description

With this function you can set the draw depth for the particle system, much the same as you can set the depth of different instances within the room, where a low draw depth means that it will appear on top of all things drawn with a higher depth, and a high draw depth placing it below everything with a lower draw depth.


Example:

global.Sname = part_system_create();
part_system_depth(global.Sname, -100000 );

The above code will create a particle system and store its index in the global variable "Sname". this system is then given a low depth of -100000, meaning that it will appear above everything with a higher draw depth.


Back: Particle Systems
Next: part_system_position
© Copyright YoYo Games Ltd. 2018 All Rights Reserved