room_last

The index of the last room in the game.

Syntax:

room_last;


Returns: Real


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.


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: Rooms
Next: room_next
© Copyright YoYo Games Ltd. 2018 All Rights Reserved