room_first

The index of the first room in the game.

Syntax:

room_first;


Returns: Real


Description

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.


Example:

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.


Back: Rooms
Next: room_last
© Copyright YoYo Games Ltd. 2018 All Rights Reserved