This function will clear a room of all instances (no destroy events shall be called for the instances that are being removed).
参数 描述 index The index of the room to clear all instances in.
global.rm = room_add();
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.