Hi everyone!
Ok I have a problem with my shooting mechanic. I don't use "every x seconds" for shooting because it's really innacurate because of the way the time lapses, so I usually make my machine guns with:
Which works perfectly well, but with this code, if I stop pressing my button (ShootSmall goes from 1 to 0) and press it again, no bullet will come out until the waiting time passes and CanShoot variable allows that.
So I want to make that when I stop pressing the button, all the waiting thing resets and it inmediatly shoots so the player can spam the shoot button if he thinks he is faster than the auto-shooting.
I hope I explained my self well enough.
Thanks!