room_instance_clear


描述

This function will clear a room of all instances (no destroy events shall be called for the instances that are being removed).


语法:

room_instance_clear(index);


参数:

参数 描述
index The index of the room to clear all instances in.


Returns:

N/A(无返回值)


例如:

global.rm = room_add();
room_assign(rm_Base, global.rm);
room_instance_clear(global.rm);

The above code will add a new room to the game and then copy the contents of the room indexed as "rm_Base" into it. It will then clear all instances from this new room.


上一页: General Room Functions And Variables
下一页: room_set_background_colour
© Copyright YoYo Games Ltd. 2018 All Rights Reserved