Determining How Long Power-up Effects Should Last

Niraj Karki
May 11, 2021

--

Day 19- Making 2D Space Shooter Game

Power-ups are major component of 2D shooter game but it is not a good thing if it lasts forever. Every power-up should last for only certain amount of time to make the game enjoyable.

So how do we do this?

The answer is simple, whenever your power-up is set to active; start a coroutine which will then disable the power-up after given time.

As you can see the power-up lasted just 5 sec before it reverted back to the normal play mode.

--

--

Responses (1)