Game Mechanics
Add a ready-made game to a scene, customize its art and rules, and use Progression triggers to decide what happens when the player wins or loses.
A Game Mechanic is a complete, ready-made game you drop into a scene. Match 3, Memory, Item Catcher, an endless runner: the rules, scoring, and input handling are built in. You supply the art and tune the settings, and the game plays the same in Preview and in the exported playable.
Every game tracks its own Score, and most also track Moves or Health. You decide what those numbers mean with Progression triggers: go to the end card when Score reaches 100, show a retry scene when Moves drops to 0.
Adding a Game
Click the + button to open the Add Layer menu and choose Game, or press the A hotkey. The Game Mechanic Library opens with every game available on your account. Select one and click Add. The game is added to your current scene and named after the game you picked.
Customizing the Game's Layers
Every game is built from child layers: the cards in Memory, the falling items in Item Catcher, the character and obstacles in Endless Runner. To change them, click Edit on the game in the Layers panel, or double-click the game on the artboard.
In edit mode you can select any child layer and:
Swap its asset to use your own art.
Move and resize it with the Transform controls.
Add an idle animation to items, special items, hazards, slice effects, and the Platformer character.
Child layers have their interactions set by the game, so the Interactions section is read-only. You can't add new layers inside a game. When a setting reduces the number of items a game uses, the extra child layers are hidden rather than deleted, so your art is still there if you raise the number again.
The Properties Panel
With a game selected, the right panel has two tabs.
The Game tab holds the settings specific to that game: layout, speed, animations, special items, and so on. Each game's page lists every setting and its default. Some settings only appear when a related toggle is on. For example, Collectible Density only shows when Collectible Item is on.
The Properties tab holds the settings every game shares:
Transform sets the game's position and size on the artboard. The game's play area fills this box.
Autoplay is in the Game Mechanic section. When it's on, the game is live and the player can play it. When it's off, the game renders but ignores all input. Turning Autoplay on also turns on Autoplay for the scene.
Progression holds the game's Triggers and Variables. See below.
Timeline sets when the game layer starts and ends in the scene.
Animations adds Enter and Exit animations.
Game Progression
The Progression section on a game works like the project-level Progression section, with two tabs.
Triggers is where you decide what the game's outcomes do. Click + to add a trigger, pick one of the game's counters, set a condition, and choose an action. Triggers on a game can only watch that game's own counters:
Score counts up as the player earns points.
Moves counts down as the player uses up attempts, and stops at 0. Only in games with limited moves.
Health counts down when the player gets hit or misses, and stops at 0. Only in games with health.
The conditions are the same as project triggers: Reaches, Drops to, Equals, and Every. See Triggers for how each one fires.
Variables lists the values that control the game's scoring, like Starting Score, Score Per Match, or Starting Moves. You can edit each value, but you can't add, remove, or rename them. Changing a Starting value also changes where the matching counter begins.
A typical setup for a game with moves:
Score Reaches 100, action starts your end card scene.
Moves Drops to 0, action starts your try-again scene.
Using Game Counters Elsewhere
A game's counters are available outside the game while its scene is playing:
Progress Bar and Progress Text can track Score, Moves, or Health. They're listed under the game's name in the Track dropdown.
Conditionals list them in the Game group of Available Variables, titled with the game's name.
An Update Progression action fired from a game trigger changes your project variables. The game's own counters only change through play.
Game Library
Last updated