solved
Finally solved, after making a timer, the problem was the reset of 120 when the character moves. It appears you have to have use a threshold of .5 instead of 1. Apparantly there is always a movement even when the character doesnt move