June 2018
Beginner to intermediate
298 pages
7h 38m
English
First, create a new scene for the collectable objects that the player can pick up. These items will be spawned by the map when the game is run. Here is the scene tree:

Leave the Sprite Texture blank. Since you're using this object for multiple items, the texture can be set in the item's script when it's created.
Set the Pickup Collision Layer to items and its Mask to player. You don't want the enemies collecting the coins before you get there (although that might make for a fun variation on the game where you race to get as many coins as you can before the bad guys gobble them up).
Give the CollisionShape2D node a rectangle shape and ...
Read now
Unlock full access