> ## 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 create multiple spawn points

> Here is a step-by-step tutorial to make multiple spawnpoints in your game

Let's dive into how you can set up multiple spawn points in your game:

<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. This could be an action like a collision, an interaction, or the game starting. Select a “Trigger” box and drag it into the editor.
  </Step>

  <Step title="Third Step">
    Navigate to the “Game Actions” section and select the “Set player position” block. Tap on the Player “Graph” button and set the player being affected by the trigger.

    <Accordion title="Behavior Image">
      <p align="center">
        <img width="300" noZoom src="https://i.imgur.com/wLiAEZE.png" />
      </p>
    </Accordion>
  </Step>

  <Step title="Fourth Step">
    For the different spawn points, you’ll need to build [custom logic](https://wiki.soba.xyz/behavior-editor/general/custom-graphs). Tap on the position number and select “Add Custom Graphs”:

    <Accordion title="1. Start by creating an Object list variable">
      <p align="center">
        <img width="300" noZoom src="https://i.imgur.com/i5V82Ub.png" />
      </p>
    </Accordion>

    <Accordion title="2. Tap on the variable and select multiple object positions you want to transform as your potential spawn points">
      <p align="center">
        <img width="300" noZoom src="https://i.imgur.com/D6U1yEU.png" />
      </p>
    </Accordion>

    <Accordion title="3. Connect your [nodes](https://wiki.soba.xyz/behavior-editor/general/nodes-list) so that when the object list is shuffled, a position is picked, converted into coordinates, and then used as the final teleport destination (as illustrated below)">
      <p align="center">
        <img width="700" noZoom src="https://i.imgur.com/ErE0XwP.png" />
      </p>
    </Accordion>
  </Step>

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