hi guys, so i have created powerup in my game. Basically when the player hits the powerup, his speed will increase. Question is, how do I set up this “temporary” increase to be only for x seconds?
What i have for now is
local speed = 8
and when the player hits the powerup:
local speed = 40
what do i need to add in the powerup function so this “40” speed would stay only for X seconds and the speed will go back to “8” later?
*I also would like to add image like shield animation around the player character when he gets the powerup and this shield animation gets deleted when the powerup effect has worn off, how do I do that? [import]uid: 114765 topic_id: 20700 reply_id: 320700[/import]