room_first


描述

This read only variable returns the index of the very first room in the game (this is defined by the order in which the rooms appear in the resource tree and not by the order in which they were created.


语法:

room_first;


返回:

索引


例如:

if lives < 1
   {
   room_goto(room_first);
   }

The above code will check the "lives" variable and if it is less than 1 goto the first room in the game.


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