part_system_depth

Sets the depth of the particle system.

Syntax:

GML Code Example

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:

GML Code 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.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here