background_get_height

Finds the height of a background.

Syntax:

background_get_height(index);


Argument Description
index The index of the background to find the height of.


Returns: real


Description

With this function you can find the height of the base background asset, with no transforms, in pixels.


Example:

if background_height[0] != background_get_height(background_index[0])
   {
   background_height[0] = background_get_height(background_index[0]);
   }

The above code checks the height of the background as it is in the current room and if there is a difference between that and the original base background, it resets the height.


Back: Backgrounds
Next: background_get_texture
© Copyright YoYo Games Ltd. 2018 All Rights Reserved