room_height

The height of the current room in pixels.

Syntax:

room_height;


Returns: Real


Description

This variable holds the height of the current room in pixels. You can change this variable to change the height of the room at any time.


Example:

if bbox_bottom > room_height
   {
   y += room_height - bbox_bottom;
   }

The above code checks to see if the current instance's sprite bounding box is greater than the height of the room, and if it is it moves the instance up.


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