In this part, you'll make the coins for the player to collect. This will be a separate scene describing all of the properties and behavior of a single coin. Once saved, the main scene will load the coin scene and create multiple instances (that is, copies) of it.
Part 2 – Coin scene
Node setup
Click Scene | New Scene and add the following nodes. Don't forget to set the children to not be selected, like you did with the Player scene:
- Area2D (named Coin)
- AnimatedSprite
- CollisionShape2D
Make sure to save the scene once you've added the nodes.
Set up the AnimatedSprite like you did in the Player scene. This time, you only have one animation: a shine/sparkle effect that makes the coin look less flat and...