part_emitter_destroy_all

销毁指定粒子系统中的所有发射器。

语法:

part_emitter_destroy_all( ps );


参数 描述
ps 要删除所有发射器的粒子系统。


返回: N/A(无返回值)


描述

This function will remove all defined emitters from the given system and clear them from memory (this will also stop any particles from being produced by the given emitter, but it does NOT remove them from the room). This function should always be called when the emitters are no longer needed for the system to prevent memory leaks and errors.


例如:

if lives = 0
   {
   part_emitter_destroy_all(global.Sname);
   room_goto(rm_Menu);
   }

The above code checks the built in global variable "lives" and if it is 0, it destroys all particle emitters and then changes room.


上一页:粒子
下一页:part_emitter_exists
© Copyright YoYo Games Ltd. 2018 All Rights Reserved