part_particles_clear

Clears all particles in the system.

Syntax:

GML Code Example

part_particles_clear(ind);


Argument Description
ind The index of the particle system.


Returns: N/A


Description

With this function you can clear all the particles currently created by the system from the room. It does not reset or remove the particle types themselves, just their visual representation, and if you have any object streaming particles from an emitter, these particles disappear but will begin to appear again the next step after calling this code.


Example:

GML Code Example

if lives = 0
    {
    part_particles_clear(global.Sname);
    room_goto(rm_intro);
    }
 

The above code will check the value of the variable "lives" and if it is equal to 0, it clears all particles from the system and then changes room.





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