room_last


描述

This read only variable returns the index of the very last 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_last;


返回:

索引


例如:

if keyboard_check_pressed(ord("Q"))
   {
   room_goto(room_last);
   }

The above code checks to see if a key has been pressed and if so it goes to the last room in the game.


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