Clear Particle System Icon Clear Particle System

With this action you can clear the given particle system to its default state, removing all emitters (there is also no need to call the Destroy Particle Emitter action as this is taken care of automatically) and clearing all particles from the screen. You supply the unique ID value for the system to clear, as returned when you created the system with the action Create Particle System. Care must be taken when using this action since it destroys all the emitters associated with the particle system - this means that any instance in the room that uses an emitter may give an error as that emitter no longer exists, so make sure that the action is only called when you are not going to be creating any new particles from that emitter (for more information on particle emitters see Create Particle Emitter).

NOTE This action will only clear the visible particles in the room, but it does not clear the particle properties nor does it remove them from memory. For that you should use the action Destroy Particle Type.

 

Action Syntax:

Clear Particle System Action

Arguments:

ArgumentDescription
SystemThe unique ID value for the system to be destroyed

 

Example:

Clear Particle System ExampleThe above action block code will clear all the particles from the screen if the player has 0 or less lives and then restart the room.