My journey becoming a Unity game developer: Determining how long powerup effects should last. Making the Triple Shot Powerup spawn at random times.

Triple Shot PowerUp spawning every 3 to 7 seconds from the top of the screen.
Created a Spawn Powerup coroutine to spawn the Triple Shot Powerup prefab every 3 to 7 seconds.
Start the SpawnPowerUpRoutine() coroutine inside the Start() function.
Triple Shot lasts 5 seconds before cooldown happens using a coroutine.
Triple Shot PowerUp prefab added to the Spawn Manager script component.
Triple Shot PowerUp spawning every 3 to 7 seconds from the top of the screen.
Created Enemies and PowerUps folders to organize their prefabs.

--

--

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
Rhett Haynes

Rhett Haynes

Learning to become a Unity game developer.