“trible shot” power-up

Andrew Lengen
Jun 3, 2021

--

It’s time to create our power-up! We’ve simulated triple shot through our Inspector through a toggle and now we need to make the actual pick-up!

Drag a sprite of our choosing to the Hierarchy, renaming that sprite to “Triple_Shot_Powerup”, resizing the sprite, giving it a 2D collider and checking the “Is Trigger” box (because this will be an “OnTriggerEnter2D()” event!), and lastly adding a “Rigidbody 2D” with “Gravity Scale” set to zero!

Let’s also get our “Powerup” script made in our Scripts folder then drag that into our Triple_Shot_Powerup!

With all that we can start writing our script for our Power-up!

--

--

Andrew Lengen
Andrew Lengen

Written by Andrew Lengen

If ambition and practicality amalgamated, it would be me! I am here to climb the mountains of my ambition and catalog my journey so that someone can be changed!