Im making a powerup action for my game, where if i touch the powerup (a box) the character fire rate will go up for 1 second, and then go back down again. when i touch the powerup with the character everything works fine and my character fire up goes up, and down after 1 second. the weird problem is, when i touch it from the back rapidly, the fire rate goes up, and then doesnt go down ever again. this only happen when i touch it on the bottom of the box, when i touch it from the sides everything works fine. this is my code
this is the error that comes up only when the fire doesnt go down
also i want to make it so i can destroy the actor right as i touch it with destroy actor, but i have to place the function before the delay so it instantly destroys it. when i do this the fire never goes down any way. pls help me too