Destroy Particle Type


Description

This action will "destroy" the given particle type created by the action Create Particle Type (ie: free up the memory used by the particle type). This action should be called whenever you no longer need a particle type in your game, or whenever you wish to re-create the particle type (for example, just before calling a Game Restart).


Action Syntax:

Destroy Particle Type Syntax


Arguments:

Argument Description
Type ID The ID value for the type to destroy


Example:

Destroy Particle Type Example
The above action block code will check for the "Escape" key being pressed and if it is detected then it removes the particle system and different particle types defined in the given global variables and then restarts the game.