background_get_height(index);
Argument | Description |
---|---|
index | The index of the background to find the height of. |
Returns: real
With this function you can find the height of the base
background asset, with no transforms, in pixels.
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.