room_duplicate


描述

This will duplicate a given room and return the duplicates index to be used in all further calls to reference the new room.

NOTE: New rooms are not part of usual room ordering, so they do not have a "previous" or "next" room (meaning that the functions room_next and room_previous will not work). To jump from the added room to another, you must use the index of the room itself.
重要!该函数在试用版(Trial License)产品中可用。


语法:

room_duplicate(index);


参数:

参数 描述
index The index of the original room to be duplicated.


返回:

索引


例如:

global.myroom = room_duplicate(rm_level);

This will duplicate the room indexed by "rm_level" and assign the room index of this new room to the variable "global.myroom".


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