<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />

Navigation

</aside>

Home Page

Overview

World System

Level Creation

Obstacles

Environment

Enemies

Player Character

Weapon System

Experience System

Difficulty Balancing

UI Store

Monetization (Ads & IAP)

Obstacles are objects located directly inside the gameplay field, to limit movement and create hiding spots.

How to create a new obstacle

Step 1 - Prefab configuration

  1. Select the prefab you’d like to turn into an obstacle.

    Untitled

  2. If the object doesn’t have any kind of collider please add any of the next colliders:

    1. Box Collider
    2. Sphere Collider
    3. Capsule Collider
    4. Mesh Collider (careful, high impact on performance)

    Adjust its parameters so it approximately covers the shape.

    Untitled

    Untitled

  3. In the Inspector window, change the object’s layer to Obstacle for each object you’ve put a collider on (or if there was a collider before).
    This will allow the physics engine to calculate bullet collisions and prevent aiming through the obstacles.

    Untitled

  4. Add NavMeshModifier and NavMeshObstacle components. Adjust NavMeshObstacles’s parameters so it tightly fit the object shape. These 2 components are responsible for object and player collision (not allowing the player or NPC to go through).

    Untitled

  5. For clarity existing obstacles for each world are stored in dedicated folders.

    Untitled

Step 2 - Registration in Level Editor

Each obstacle needs to be registered in the Level Editor. This will allow quick spawn of it during level creation and is a key part of the game's quick loading system.

  1. Right-click on the prefab and select Add into Level Editor

    Screenshot 2024-03-27 150644.png

  2. Set 2 required fields and click Add.

    1. World - a world you wish to add this obstacle to. You can add the same obstacles to multiple worlds.
    2. Type - select obstacle in this case. Type simply groups objects in separate tabs during level creation for clarity.

    Screenshot 2024-03-27 151417.png

  3. If you forgot something in the previous step, you will get an error message.

    Untitled

  4. Done. A new prefab can be used during level creation. You can see the entire list of obstacles and environment elements in the Level Editor → World Settings tab. This list can be modified, so you can add, remove, or edit existing items.

    Untitled