Here is a step-by-step tutorial to make a player teleport in your game
There are two ways to make your players teleport across positions. One is using the teleport object, and the other is by using behavior editor. We’ll teach both ways in the information below.
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 or an interaction. Select a “Trigger” box and drag it into the editor.
3
Third Step
Navigate to the “Game Actions” section, select the ‘Set Player Position’ block, and set the coordinates for the checkpoint. You can also build custom logic with further data by tapping on the “Graph” button next to Position. Instead of typing something, select “Add Custom Graphs”. This example below will set the teleport position to an object in your game.
Behavior Image
Behavior Block
Nodes (custom graph)
4
Fourth Step
Exit the Behavior Editor, playtest and ensure it works as expected!