> ## 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 make a player invincible?

> Here is a step-by-step tutorial to make players invincible

### How to make a player invincible?

<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 Maximum Lives’ and ‘Set Lives’ blocks. For example, you might set 'Set Maximum Lives’ to 9999 and ‘Set Lives’ also to 9999. In that way, your player will have several [lives](https://sobastudios.mintlify.app/behavior-editor/game-logic/health) in the game. The same can be done with Health in case you don't want your player to get killed, simply use the blocks ‘Set Maximum Health’ and ‘Set Health’ instead.

    <Accordion title="Behavior Image">
      |                          Behavior Block                          |                       How it looks in-game                       |
      | :--------------------------------------------------------------: | :--------------------------------------------------------------: |
      | <img width="300" noZoom src="https://i.imgur.com/W1xQcIP.png" /> | <img width="600" noZoom src="https://i.imgur.com/JOh4Z4q.png" /> |
    </Accordion>
  </Step>

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