Game checkpoints are key to prevent the need to repeat large portions of the map, or to provide a sense of accomplishment as players progress through the game! Follow the steps below to add a checkpoint to your game:
1
First Step
The basics for all behaviors
Tap on the object to which you want to add a behavior
With the object selected, tap on the “Details” button to the left of your screen.
In the Details panel, tap “Add Behavior”.
2
Second Step
Decide what will trigger the behavior. This could be an action like a collision, an interaction, or players entering a game. Select a “Trigger” box and drag it into the editor.
3
Third Step
Navigate to the “Game Actions” section, select the ‘Set Checkpoint’ block, and set the coordinates for the checkpoint. Alternatively, you can build a custom logic with further data by clicking on the position number and, instead of typing something, selecting ‘add custom graphs’. To select an object as a coordinate, add an “Object Offset Position” operator (as the image below). You can increment directions (hence why the name “Offset!”, as you can adjust coordinates from that initial point) on that offset, for example slightly change the Y coordinate of that operator, so that the checkpoint is set above the object and not inside of it!
Behavior Image
Behavior Block
Nodes (custom graph)
4
Fourth Step
Exit the Behavior Editor, playtest and ensure it works as expected!