background_foreground

This variable determines if one of the 8 backgrounds for the current room is a foreground.

Syntax:

background_foreground[0...7];


Returns: Real


Description

Although we call these image assets "backgrounds", with this flag we can set them to be foregrounds too... ie: if this variable array is set to true the image stored in the background_index will be shown on top of all other things in the game.


Example:

if intro
   {
   background_foreground[0] = true;
   }
else
   {
   background_foreground[0] = false;
   }


Back: Backgrounds
Next: background_hspeed
© Copyright YoYo Games Ltd. 2015 All Rights Reserved