room_last


Description

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.


Syntax:

room_last;


Returns:

Index


Example:

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.


Back: General Room Functions And Variables
Next: room_next
© Copyright YoYo Games Ltd. 2018 All Rights Reserved