part_system_drawit

Draws the particles in a given system.

Syntax:

GML Code Example

part_system_drawit(ind);


Argument Description
ind The index of the particle system to draw the particles of.


Returns: N/A


Description

With this function you can force a particle system to draw all the current particles on the screen. If part_system_automatic_draw is switched off then this function will show the particles when used in the draw event of an instance, or it can be used when the drawing target is set to a surface (using surface_set_target) to draw the particles in the system to that surface.


Example:

GML Code Example

if surface_exists(surf)
    {
    surface_set_target(surf);
    part_system_drawit();
    surface_reset_target();
    }
 

The above code checks to see if the surface indexed in the variable "surf" exists, and if it does it then sets the drawing target to the surface, draws the particles and then resets the drawing target so all normal drawing appears on the screen once more.





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