This action will "destroy" the given particle emitter, ie: free up the memory used by the particle emitter. You supply the particle system ID that the emitter belongs to (as returned by the action Create Particle System) and then the actual emitter ID (as returned by the action Create Particle Emitter). This action should be called whenever you no longer need a particle emitter in your game, or whenever you wish to re-create the particle emitter (for example, just before calling a Game Restart). Note that if the particle system the emitter has been assigned to has not been flagged as Persistent then you do not need to call this action, as the emitter will be automatically cleaned up on room end along with the particle system.
参数 描述 系统 The ID value of the system that contains the emitter 发射器 The ID value of the emitter to destroy
The above action block code will check an instance variable and if it is over 100 it will destroy the emitter assigned to the instance and then go to the next room.