> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.soba.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# How to teleport players through interactions?

> Here is a step-by-step tutorial to teleport players using the button interaction

### How to teleport players through interactions?

<Steps>
  <Step title="First Step">
    <Accordion title="The basics for all behaviors">
      1. Tap on the object to which you want to add a [behavior](https://wiki.soba.xyz/behavior-editor/managing-behaviors/behavior-object)
      2. With the object selected, tap on the “Details” button to the left of your screen.

      <p align="center">
        <img width="200" noZoom src="https://i.imgur.com/jMSZzP8.png" />
      </p>

      3. In the Details panel, tap “Add Behavior”.
    </Accordion>
  </Step>

  <Step title="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.

    <p align="center">
      <img width="300" noZoom src="https://i.imgur.com/i9jWTCp.png" />
    </p>
  </Step>

  <Step title="Third Step">
    Go to the “Game Actions” section, select the “Set Player Position” block, and set the coordinates for the [teleport](https://wiki.soba.xyz/behavior-editor/game-logic/teleport). Alternatively, you can build a [custom logic](https://wiki.soba.xyz/behavior-editor/general/custom-graphs) 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).

    <Accordion title="Behavior Image">
      |                          Behavior Block                          |                       Nodes (custom graph)                       |
      | :--------------------------------------------------------------: | :--------------------------------------------------------------: |
      | <img width="300" noZoom src="https://i.imgur.com/Oi8UN69.png" /> | <img width="600" noZoom src="https://i.imgur.com/kRVKPkr.png" /> |
    </Accordion>
  </Step>

  <Step title="Fourth Step">
    Exit the Behavior Editor, playtest and ensure it works as expected!
  </Step>
</Steps>
