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

Navigation

</aside>

Home Page

Overview

Level Editor

Bubble Set

Background

Level Items

Level Map

Power-Ups

UI Store

Lives System

Monetization (Ads & IAP)

How to change the level’s background

  1. The game has 2 premade backgrounds, however you can add as many as you want. Let’s modify the existing background first, then we will add a new one.

  2. Find the folder Game/Prefabs/Level Backgrounds. It contains all existing backgrounds.

    Untitled

  3. Double-click on Blue Background to open it. Background structure is the next:

    1. Background Image - the main image we see behind everything else.
    2. Background prop - contains extra decorations and light effects.
    3. Foreground prop - contains foreground decorations such as a cauldron.

    Untitled

  4. This structure is not necessary, so you can delete any elements and replace them with whatever you want.

  5. The main thing that can be changed is the Background image. In our case it is a mesh with a texture on top of it. You can change the texture of the material to change how the back looks. To do this:

    1. Select the material.

      Untitled

    2. Change texture that is assigned here.

      Untitled

  6. Alternatively, you can remove Mesh Renderer and Mesh Filter components and add a Sprite Renderer to be able to use a simple sprite.

    1. For this remove Mesh Renderer and Mesh Filter

      Screenshot 2024-01-23 151805.png

    2. Add Sprite Renderer

      Untitled

    3. Assign the image and set the Order in Layer to -1

      Untitled

    4. Set rotation to (0,0,0) and adjust position and scale if needed.

      Untitled

  7. Now how to add a new background. Return to the Game/Prefabs/Level Backgrounds folder. Select any of existing backgrounds and press Ctrl + D (Cmd + D) to duplicate it. Rename duplicated element.

    Untitled

  8. Double-click it and do all necessary modifications following this instruction starting Step #3

  9. Next, we will integrate the new back into the game. Open Level Editor using Tools > Level Editor. Select the Level Backgrounds tab.

    Untitled

  10. Click the Modify button to add another element.

    Untitled

  11. Click the + button

    Untitled

  12. Enter the name. Important: do not use spaces or special symbols. Press Save.

    Untitled

  13. Return to the Level Backgrounds tab and assign a prefab value with an object we created in Step #7.

    Untitled

  14. A new background can now be assigned to any level.

    Untitled