# Create a Stage

{% stepper %}
{% step %}

## Preparation

As a first step, please make sure you prepared at least a few enemies or have the ones that came with the template. \
If are not sure, take a look at [add-a-simple-enemy](https://october-studio.gitbook.io/monster-survivors-documentation/enemies/add-a-simple-enemy "mention").&#x20;
{% endstep %}

{% step %}

## Setting up Timeline Window

1. To access Timeline, open it from a top panel:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FvFqQ42YESjQ2gv0aB9iv%2Ftimeline.png?alt=media&#x26;token=50a6d24f-deac-4f07-b671-f74cf8e9025a" alt="" width="375"><figcaption><p>How to access Timeline</p></figcaption></figure>

2. Opened Timeline should look as follows:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FxOX3VSvGoR2QpPT4kD3h%2Fimage.png?alt=media&#x26;token=eaf273e4-7691-4a99-95a6-bba020d8680b" alt=""><figcaption><p>Timeline window</p></figcaption></figure>

Create a window layout that's most comfortable to you.&#x20;

<mark style="color:yellow;">Make sure that this window stays open and in view.</mark>
{% endstep %}

{% step %}

## Viewing a Timeline File

Let's take a look at a Timeline File:

1. Navigate to ![](https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FkREhBcMg81eVpPkgxMaw%2Fimage.png?alt=media\&token=c5648072-4d2a-4d63-9b54-3e56a71d1c1d) and select a stage file, for example Stage 1. It should have an icon like this:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FXbQGpRvRnp53hSi5pyPl%2Fimage.png?alt=media&#x26;token=8c298e4d-d3f0-4b62-9ccb-95b84a90d160" alt=""><figcaption><p>Stage file example</p></figcaption></figure>

2. Open the file. If you did everything correctly in Step 2, the Timeline window should look like this:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2Fg52DqpL2wRDDqbYsbv1a%2Fimage.png?alt=media&#x26;token=7649c93f-6349-45dc-8d69-c348dbb2682b" alt=""><figcaption><p>Opened stage 1</p></figcaption></figure>

<mark style="color:yellow;">To display the timeline in seconds, press the settings button on the Timeline window, and select Seconds:</mark>

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FvwkFhqRkDTqjhUdGgZQT%2Fimage.png?alt=media&#x26;token=031ceff5-8341-42ae-a551-16e7877eb670" alt="" width="158"><figcaption><p>Timeline settings</p></figcaption></figure>

<mark style="color:yellow;">For the ease of use you can lock the Timeline window, to pin the current stage you're working on. To do this, press the</mark> ![](https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FXthlHklhavZXTiMlyE8a%2Fimage.png?alt=media\&token=8a45abb2-1781-43cb-bda0-172c65978a3d) <mark style="color:yellow;">button, on the top right side of the window.</mark> <mark style="color:red;">If you want to open another timeline, make sure to unlock the window before doing that.</mark>
{% endstep %}

{% step %}

## Creating a Stage

1. To create a Stage timeline, in your desired folder, Right Click > Create > Timeline. \
   Name your Stage timeline.&#x20;
2. Open the file. Timeline window should look like this:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FysgPWZP8Xu5yu4aADpBG%2Fimage.png?alt=media&#x26;token=aec83aaa-7a5a-42d4-a243-8d6a0848ba7d" alt="" width="563"><figcaption><p>Empty Stage Timeline</p></figcaption></figure>

{% endstep %}

{% step %}

## Adding Tracks

Now you can add various enemies, bosses and camera control:

1. Right Click on the empty field on the left, and add a wave track:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FHeAzbW8gohpbpw9I5xWt%2Fimage.png?alt=media&#x26;token=897d4ca4-3d54-4853-935d-9a9ba1cfb1bb" alt="" width="364"><figcaption><p>Adding a Wave Track</p></figcaption></figure>

An empty track with preselected enemy will appear:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2F2Vr8LQ9s10GnoY8TRyl4%2Fimage.png?alt=media&#x26;token=9dcdec50-21c2-4ac3-85c1-d595a5e570ea" alt="" width="274"><figcaption><p>Wave Track Example</p></figcaption></figure>

2. Click on the track. Inspector should display its settings:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FUuTqMgSh15qVb7GQv2xW%2Fimage.png?alt=media&#x26;token=65c9c547-7a62-4c97-939c-0a90aed9306f" alt="" width="284"><figcaption><p>Wave Track Settings</p></figcaption></figure>

There, choose your desired enemy.

<mark style="color:yellow;">If the enemy you expected doesn't appear in the list, refer to</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">**Step 4**</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">of</mark> [add-a-simple-enemy](https://october-studio.gitbook.io/monster-survivors-documentation/enemies/add-a-simple-enemy "mention")

3. Repeat **Steps 1** and **2** to add as many enemies as you like for this stage.
4. The process is mostly the same for bosses, but instead of separate tracks, you can add all bosses into a single one. To add it, Right Click on the empty field on the left, and choose to add a Boss Track:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2F90KexlZgaAJLGjmkDuDS%2Fimage.png?alt=media&#x26;token=60fccac9-b9b0-4055-bdf0-55e392fbc2fa" alt="" width="351"><figcaption><p>Creating a Boss Track</p></figcaption></figure>

5. To add optional camera controls, also Right Click on the empty field on the left, and choose to add a Camera Track:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FvMsDHiHDMMZSRS2J1FCN%2Fimage.png?alt=media&#x26;token=32d2995e-1cf5-4df7-a79c-28c2ce594164" alt="" width="362"><figcaption><p>Creating a Camera Track</p></figcaption></figure>
{% endstep %}

{% step %}

## Adding Clips

As you added enemies, bosses or camera controls to you liking, its time to set them up to appear in your stage.

1. On your timeline, hover on a wave track that you want to configure, press Right Mouse, and Add a Wave:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2F0LAKekaogMZxaSvbDd8Y%2Fimage.png?alt=media&#x26;token=0196634c-2f5f-40ed-a7d0-baf7b23ace89" alt="" width="563"><figcaption><p>Adding a Wave</p></figcaption></figure>

2. This will spawn a wave of your choice. To know more about the waves and other clip types, go to [Clips](https://october-studio.gitbook.io/monster-survivors-documentation/tracks-and-clips#clips) and [Tracks](https://october-studio.gitbook.io/monster-survivors-documentation/tracks-and-clips#wave-track).
3. Resize the clip to your liking. To do that, hover over the edge of the clip, and drag it however you need. You can also size it more precisely in the Inspector field, by selecting the clip:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FZMdzDnuPq3Ikqb7XoyRI%2Fimage.png?alt=media&#x26;token=cd820f62-1f4e-45b4-9d4e-c937e45d6d64" alt="" width="286"><figcaption><p>Clip Timing example</p></figcaption></figure>

4. In the same Inspector window you will find spawn settings, that are separate for each individual Wave Clip:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FIfxRh47HUDetCnOcNkdv%2Fimage.png?alt=media&#x26;token=64c8f276-284b-410a-8d51-727b5c6fdb33" alt="" width="283"><figcaption><p>Wave Clip Settings Example</p></figcaption></figure>

<mark style="color:yellow;">By default, all the spawn values will be 1. Make sure to change them in the Inspector according to your liking.</mark>&#x20;

5. Repeat the process for every enemy. To achieve best results, mix and match different Wave Clips, set different values etc. In the end, it can look in this manner:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FKHlcJ3MxPSphC8HbAXzM%2Fimage.png?alt=media&#x26;token=ebdf9767-086b-468a-8f28-0718a2d3efdc" alt=""><figcaption><p>Clips in a Typical Stage</p></figcaption></figure>

6. You can optionally add tracks for Boss Fights and Camera Control. Example is also shown on the image above.

<mark style="color:yellow;">You can edit your Stage at any time. If you are not sure how you want it to play yet, you can fast forward to next steps, and come back to it later.</mark>
{% endstep %}

{% step %}

## Creating Stage Data

Next, you need to create a settings file for your Stage.&#x20;

1. First, you need to create a Stage Data file, to hold its settings. To do that, Right Click on in a project folder > Create > Stage Data. Rename your file.&#x20;
2. Open the file. It should look like this:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2Fx2K4AkZNI0hrwXOfW30Z%2Fimage.png?alt=media&#x26;token=46c109d1-ac9a-4678-89ed-389e4336c5c2" alt="" width="308"><figcaption><p>New Field Data file</p></figcaption></figure>

3. Now, populate the fields to your liking. Check out [Stage Data](https://october-studio.gitbook.io/monster-survivors-documentation/stage-settings#stage-data) if you are not sure what these fields represent. Assign your newly created Stage Timeline in the Timeline field.

<mark style="color:yellow;">Make sure to set proper values to Enemy Damage and Enemy HP (1 by default).</mark>
{% endstep %}

{% step %}

## Registering a Stage

Now you need to add this Stage Data to the Stage Database.

1. To do that, open the Stage Database file ![](https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FBCdWro7mct28yP8HzYQD%2Fimage.png?alt=media\&token=b7450c0b-5601-493d-98b7-8474c6cad839). It should look like this when opened:

<figure><img src="https://1095504291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNhXrPwcj8TJ32pNkD2R%2Fuploads%2FvCWAEOp5TGLUWXujGmb5%2Fimage.png?alt=media&#x26;token=3427f960-86c9-4dee-a185-4bd834cf0327" alt="" width="310"><figcaption><p>Stage Database</p></figcaption></figure>

2. Here, press the + icon on the bottom of the list. A new field will appear. Click on it and assign the Stage Data that you created.
3. Now you can play the game to test your Stage, and make adjustments in the process.

Have Fun!
{% endstep %}
{% endstepper %}
