June 2018
Beginner to intermediate
298 pages
7h 38m
English
Create a new scene for the Enemy, using an Area2D as its root node. Add a Sprite and use res://assets/enemy_saucer.png as its Texture. Set the Animation/HFrames to 3 so that you can choose between the different-colored ships:

As you've done before, add a CollisionShape2D and give it a CircleShape2D scaled to cover the sprite image. Next, add an instance of the EnemyPaths scene and an AnimationPlayer. In the AnimationPlayer, you'll need two animations: one to make the saucer spin as it moves, and the other to create a flash effect when the saucer is hit:
Read now
Unlock full access