> ## 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 an object appear and disappear?

> Want to spice up your game? Create a dynamic object which appears and disappears to make your game more interesting.

Creating dynamic elements where objects appear and disappear can add an engaging aspect to your game. Follow these steps to set up this effect:

<Steps>
  <Step title="Select your object">
    <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="Set your Trigger">
    Decide on the action that will trigger the appearance and disappearance. If you want your object to continuously appear and disappear right from the onset of the game, opt for the "Game Start" trigger. This will ensure the effect begins as soon as gameplay starts.
  </Step>

  <Step title="Set your Loop">
    To have the object consistently appear and disappear, go to the “Controllers” section. Select and drag the “Infinitely” [loop](https://wiki.soba.xyz/behavior-editor/managing-behaviors/loop-behavior) block, placing it below the trigger.
  </Step>

  <Step title="Scale Down">
    In the “Object Action” section, drag the “Scale Object” block into the “Infinitely” loop. Adjust the block settings, setting X, Y, and Z coordinates to 0 to scale the object down until it disappears.
  </Step>

  <Step title="Add Wait Time">
    Insert a “Wait” block for a 1-second pause before scaling up again.
  </Step>

  <Step title="Rescale to original size">
    Add another “Scale Object” block below the first one. Toggle this block and set all axes to 1, allowing the object to return to its original size and reappear.
  </Step>

  <Step title="Add Wait Time">
    Insert a “Wait” block for a 1-second pause before scaling up again.

    <Accordion title="Behavior Image">
      <p align="center">
        <img width="400" noZoom src="https://i.imgur.com/o8GLuCh.jpg" />
      </p>
    </Accordion>
  </Step>

  <Step title="Playtest!">
    After setting up the movements, test your game to see how the object behaves and make adjustments for the perfect effect.
  </Step>
</Steps>
