My 90 day journey becoming a Unity game developer: Day-18

Player’s speed changes from regular to double the amount.
Speed Powerup created.
Adding Powerup script to the Speed Powerup and turning it into a prefab.
Speed Powerup using the Triple Shot from the script passed on.
Powerups are assigned ID numbers.
If/Else condition for powerupID.
Switch condition for powerupID.
Player movement using multiplier if they grab the Speed Boost Powerup.
Speed Powerup works, but the speed variable doesn’t show results.
Speed variable changes from 5 to 10 when powerup is collected.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store