Attach a new script to the LevelBase
All levels will inherit from this base
Click Scene => New Inherited Scene
Save the scene as level_01.tscn
Create a level using the WorldLayer
Select the WorldLayer Node
Select tiles with arrow and paint with the pen
Once you have laid out a level
Use the ItemsLayer to mark
spawn locations for cherries and gems
You can also limit horizontal scrolling
To match the map size by setting
Remember to call the function
We can also add code to scan the ItemsLayer to find item markers, collect items and add them to the Player score
Add a signal to broadcast when score has changed
Create a variable to store
Add a variable to track the score
Create a function to update the score
Update the score variable
To run the set_score function
Create a function to spawn the items
Create the picked up function
Play Test the level now - items should spawn and you can collect them.