Here is a step-by-step tutorial to teleport players using the button interaction
First Step
The basics for all behaviors
Second Step
Decide what will trigger the behavior. In this case, we are using “Interaction”, which shows a button when getting closer to the object that the behavior is added to.
Third Step
Go to the “Game Actions” section, select the “Set Player Position” block, and set the coordinates for the teleport. Alternatively, you can build a custom logic with further data by tapping on the position number and, instead of typing something, selecting “Add custom graphs’” For example, setting the teleport position to an object in your game (see custom graph image below).
Behavior Image
Behavior Block | Nodes (custom graph) |
---|---|
![]() | ![]() |
Fourth Step
Exit the Behavior Editor, playtest and ensure it works as expected!
Here is a step-by-step tutorial to teleport players using the button interaction
First Step
The basics for all behaviors
Second Step
Decide what will trigger the behavior. In this case, we are using “Interaction”, which shows a button when getting closer to the object that the behavior is added to.
Third Step
Go to the “Game Actions” section, select the “Set Player Position” block, and set the coordinates for the teleport. Alternatively, you can build a custom logic with further data by tapping on the position number and, instead of typing something, selecting “Add custom graphs’” For example, setting the teleport position to an object in your game (see custom graph image below).
Behavior Image
Behavior Block | Nodes (custom graph) |
---|---|
![]() | ![]() |
Fourth Step
Exit the Behavior Editor, playtest and ensure it works as expected!