销毁粒子类型


描述

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).


动作语法:

Destroy Particle Type Syntax


参数:

参数 描述
Type ID The ID value for the type to destroy


例如:

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.