Unity Game Development — Temporary Power-Ups
What would a Top-Down Shooter be without Power-Ups?! Giving the player high-risk, high-reward bonuses during gameplay can break up the monotony of simple point-and-shoot. How long should those power-ups last? The final decision is up to you, but I can show you how you can apply a time limit to them.
The purpose of a power-up is to alter an aspect of a game mechanic and improve on it. It can affect the strength value of the desired feature or change its behavior to give the player an advantage.
In my case, I have created a power-up that allows the player to shoot three bullets at once. This feature will give the player a wider area of attack ahead of it. However, I want to make sure that the advantage this power-up provides only lasts for a short time.
Currently, I can collect the power-up, and its effects will be permanent.
I certainly can’t allow my player to have such power for the entire game. They might lose interest or find it too easy. Honestly, I’m doing this for them.
METHOD:
We have already used Coroutines and have learned about Triggers and Colliders. Once we…