Galaxy Shooter 2D — Triple Shot #6

Creating a new special ability for the spaceship

Three cannons for three lasers

If you’re wondering, yes, I later changed the positions in the Inspector to be symmetrical.

The powerup needs a body

Easy enough.

It’s not going to code itself

Click to zoom on the code. I used the Ternary Operator to switch between prefabs

End Result

I added to my spawn manager the powerup prefab, and it now spawns powerups at a steady pace. Neat!

I am a recently graduated Game Designer with strong knowledge of the Unity Engine! You can check my game “Noise Hunters” on Steam!