
When this behavior triggers, it’ll change the focus of the game to the selected scene, and reset the scene you were just in. Generally, you’ll want this behavior in a rule stating some sort of precondition for changing the scene, such as an actor reaching a goal, or achieving a certain score. Select any scene in your game from the drop-down menu in this behavior.

The foremost of these is the “Change Scene” behavior. Several key behaviors affect which scene is currently active in your game. For instance, the positioning of the camera in a scene can be changed by altering the “camera origin” attributes, while the background color of the scene is alterable with the “color” attribute.

In contrast, if you are creating a maze or tilt game, you would not want the scene to rotate as the player tilts the device to navigate the ball (or whatever object) around the maze.Īs we’ll discuss in more detail later, attributes are the values (numeric or text) relating to an object that are easily and rapidly changed at any point. For example, if a player turns their device upside down, you may want the game to autorotate to portrait (or landscape) upside-down to adjust to this new view.

When disabled, actors continue moving indefinitely off-screen unless they are explicitly destroyed (via behaviors you’ve set). Wrap X: when enabled, actors that exit the left side of the scene will re-enter from the right side of the scene (and vice versa).Size: the pixel dimensions (width and height) of the current scene.This attribute can be read and incorporated into your rules/behaviors, but not set. Time: the number of seconds a scene has been active.Name: a descriptive way for you to refer to different scenes within your game.The following attributes define each scene and are modifiable: To delete a scene, simply click it and press “Delete”, or the “-” button in the bottom left of the interface. To copy an existing scene, hold down the ‘option’ (aka “alt”) key and drag a copy of the existing scene to the desired location within the scene list. To add a new scene, press the Home button and then press the ‘+’ button in the bottom left of the interface.

To view or edit the scenes within your game, select the “scenes” button within your navigation menu. For example, one layer may contain your background, another may contain all your labels, another may be for actors in your scene that the player can interact with, etc. Layers provide another level of (visual) organization for your game, and they allow you to group objects within your scene and arrange them in front of or behind other layers/objects. You can split each scene into layers (similar to many design programs, such as Photoshop or Illustrator). Scenes are containers for the objects (called “actors”) in your game.
