Objective: Create a Player fired missile that will hunt down and destroy the closest enemy.
The powerup itself will work the same way all the other powerups work and will be added to the modular powerup system I created Here.
I also decided to use a separate ammo system for my missiles the same way I created an ammo system for the Player’s laser weapon Here.
Create the missile sprite and attach a new script to the prefab called Player_Missile:
Objective: Create a powerup that when collected will restore health to the Player.
I will be adding to the modular powerup system I created in This article and I will be creating a powerup the same way I created my other powerups in previous articles.
The first thing we need to do is create and animate the powerup:
Objective: Limit the Player’s thruster usage with a charge meter and have the charge regenerate after a small delay.
To begin we need to create a Slider that will act as the charge meter and have the color green with a white background. Also, we will use text to indicate the slider is for the thrusters: