Coins are similar to players:
By clicking on the plus icon
Add an Area2D as the root
Add an AniamtedSprite2D as child
Add a CollisionShape2D as child
Save the scene as Coin.tscn
Select the AnimatedSprite2D node
In the Inspector on the right
Now click on the word SpriteFrames
To open the SpriteFrames tab
At the bottom of the screen
Rename the default animation to idle
Drag all the coin frames into the animation
Set the fps of the animation to 12
Scale the AnimatedSprite2D down to 0.4
Select the CollisionShape2D
Resize it to fit the coin
Type Coins & click Create
Hit the Attach Script button
For now:
When the player overlaps a coin
Delete the coin
To test picking up coins we will create a main scene which is the level that the player can run around in, avoid obstacles and collect coins.