Fast Pickup Collect Feature in Unity
Make power ups collection more dynamic
Aug 26, 2021
Objective: Increase the pickups speed when the plaster press the “C” key
In the powerup script I created a new variable called _extraSpeed and added it to the parameters in the Translate function to move the powerup down.
In the Update method I added a condition to check for the use input, if the user presses the “C” key we set the _extra speed to 6 and in any other case we set the _extraSpeed to 0 again.
And good to go!! Simple feature to make the user move the powerups faster.