How to create the LEVELS with EDITOR
Last updated
Last updated
Open Game Scene: Go to Tools -> SpotTheDifferencesGameToolkit -> Game scene OR use a hotkeys Alt+2
Go Tools -> SpotTheDifferencesGameToolkit -> Level Editor -> Editor OR use a hotkey C
The Level Editor tab is used to set the level number, background, enable/disable the timer, and create a new level. All other level settings are configured in the Hierarchy tab.
Create a new level by clicking the "+" button.
Set the desired background for the level.
This background will also be displayed in the Play Menu
Specify whether the level is timed. If so, set the required number of seconds.
For example, let's create Level 2. Click the "+" button. You'll see the same scene as in the very first level. This is the default scene, which we will modify.
First, let's add a background for our level (it will also be displayed in the Play Menu).
We can make this a timed level, so check the box and set the time to 60 seconds, for example.
To add an object to the scene, go to the Hierarchy and click the "+" next to the word Level.
A default Stage Object will be created.
Now, let's go to the folder with textures for this level. Since this is an example of creating Level 2, go to Sprites -> Backgrounds -> background-2. Here you'll find all the objects we'll use to create the puzzle.
Now, we need to drag the necessary sprite into the Hierarchy, inside the Stage Object (drag the images one by one).
For example, these two sprites will be used as one element (an abstract painting in a frame), but they will look different on each screen. On the first screen, we will see art-1, and on the second, art-2.
Rename the Stage Object to something convenient for you, for your own ease.
Initially, any added image appears on the first screen and in the workspace where we place all the objects.
In the workspace, place both paintings inside the frame.
Next, go back to the Hierarchy and specify which picture should be shown on which screen. 1 stands for Screen 1, and 2 stands for Screen 2. Just click the number to change its value.
Let's see how it looks. It works! We can see the first image on Screen 1 and the second image on Screen 2. They look very similar, but they are still different—take a closer look.
Let’s consider a scenario where the image will be visible on only one screen. To do this, create a Stage Object again by clicking the "+" button. Let’s say it’s a plant leaf in a pot. Drag the leaf into the Stage Object, rename the object. In the workspace, position it against the background. Then, in the editor, specify which screen you want this object to appear on. Let’s make it Screen 2. Perfect!
Now, let’s look at a scenario where one object overlaps another. It’s better not to do this, but if needed.
Go to the Inspector and change the Order in Layer to a lower or higher number to adjust the layer.
Repeat these steps for all the planned objects.
Click Play to test the level.
You can delete a level in Asset -> Scenes.
And in Assets -> Resources -> Levels
To test the whole game, go to the Main Scene, then go to Tools -> SpotTheDifferencesGameToolkit -> Game scene OR use the hotkey Alt+1. Then, press Play in Unity.
To reset settings, go to Tools -> SpotTheDifferencesGameToolkit -> Reset PlayerPref
🎥 For a more detailed overview, watch our VIDEO guide
❓ If you have any further questions, don't hesitate to ask us. We will be happy to help you understand the project on DISCORD 💖 Thank you for choosing our Assets! 💖