Create a new scene with an Area2D as the root node.
Create a new scene with an Area2D as the root node.
Rename it Strawberry.
Rename it Strawberry.
Add an AnimatedSprite2D node as a child and create new SpriteFrames
Add an AnimatedSprite2D node as a child and create new SpriteFrames
In the Animation Frames window Rename the default animation to idle
In the Animation Frames window Rename the default animation to idle
Press Ctl+Shift+O to import frames from a sprite sheet
Press Ctl+Shift+O to import frames from a sprite sheet
There are 17 horizontal frames and 1 vertical frame
There are 17 horizontal frames and 1 vertical frame
Select them all and add them.
Select them all and add them.
Set the animation to loop at 20fps.
Set the animation to loop at 20fps.
Add a CollisionShape2D node as a child
Add a CollisionShape2D node as a child
Select a CapsuleShape2D as the hit box shape and fit it around the strawberry.
Select a CapsuleShape2D as the hit box shape and fit it around the strawberry.
Save the scene as strawberry.tscn
Save the scene as strawberry.tscn