Skip to main content

Scene

Change Scene

Transition to a new scene with player at a specified position and direction. A connection line will be drawn between the source of the event and the destination scene with an icon appearing at the destination position. It's possible to drag this icon around and between scenes to modify the event.

Change Scene
Scene
Scene 1
X
0
Y
0
Direction
Fade Speed
Speed 1
  • Scene: The scene to transition to.
  • X: The initial player horizontal position in the new scene.
  • Y: The initial player vertical position in the new scene.
  • Direction: The initial player direction.
  • Fade Speed: The speed of the fade animation.

Control Flow

If Current Scene Is

If Current Scene Is
Scene
Scene 1
True
Add Event
Else
  • Scene
  • True
  • False

Scene Stack

Remove All From Scene Stack

Remove all scenes from the scene stack without leaving the current scene.

Remove All From Scene Stack
Clears the stack of saved scene states.

Restore First Scene From Stack

Transition to the very first scene stored on the stack, for instance if you had multiple levels of menu scenes you could use this to imediately return to the game scene. This event will cause the scene stack to become empty.

Restore First Scene From Stack
Pop all scene state from stack.
Fade Speed
Speed 1
  • Fade Speed: The speed of the fade animation.

Restore Previous Scene From Stack

Transition to the last stored scene from the scene stack using the specified fade speed. The previous scene will then be removed from the stack so the next time this event is used it will transition to the scene before that.

Restore Previous Scene From Stack
Pop the top scene state from stack.
Fade Speed
Speed 1
  • Fade Speed: The speed of the fade animation.

Store Current Scene On Stack

Store the current scene and player state on to the scene stack, this allows you to return to this exact location later using the Scene Restore events. A common use of this event would be to include in a script just before a Change Scene event to open a menu scene, in the menu scene you could wait for the player to press a close button and then use the Restore Previous From Stack event to return to where the player opened the menu.

Store Current Scene On Stack
Push scene state to stack.

Tiles

Replace Tile At Position

Replace a tile at a specified coordinate with another from a tileset.

Replace Tile At Position
X
0
Y
0
Tileset
flowers
Tile
0
  • X: The horizontal position.
  • Y: The vertical position.
  • Tileset: The tileset to fetch tiles from
  • Tile: The tile offset inside tileset

Replace Tile At Position From Sequence

Replace a tile at a specified coordinate with another from a tileset in a sequence.

Replace Tile At Position From Sequence
X
0
Y
0
Tileset
flowers
From Tile
0
Animation Frames
0
State Variable
$Variable0
  • X: The horizontal position.
  • Y: The vertical position.
  • Tileset: The tileset to fetch tiles from
  • From Tile: The starting tile offset inside tileset
  • Animation Frames: The number of animation frames to cycle through.
  • State Variable: A variable to store the current state of this event