Phase 1 — Secondary Fire Powerup

Nicholas Lim
Jun 11, 2021

--

Aside from the Triple Shot powerup, the Player will be given another alternate fire mode powerup, a 360 multi shot.

First I set up the Powerup object the same way as before.

Next I create a new laser type prefab by arranging eight lasers around the player. This will be what the Player instantiates.

Then I add this Powerup to the Spawn Manager, while adding new code in the Powerup script to activate this 360 Laser on the Player when collected.

Lastly update the Player script to toggle this fire mode on when collected and start the coroutine timer to turn it off after five seconds.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response