Speed Boost

Objective: Create a speed boost system that doubles the speed of your ship for 5 seconds.

It’s pretty much a replication of the weapons powerup/triple shot system. I purposely separated the weapons from the powerups so this system can now take in the shield system as well.

The big difference in this script is creating the in system for what type of powerup you’re looking for.

Then applied the ability to choose what powerup to drop based on what type it is.

Finally added a simple coroutine script that will boost the player speed wise for 5 seconds and then will tone it back down afterwards to the original speed.