A simple solution would be to put the check on tick…while the player is not moving set the timer variable to 0…while the player is moving, increment the timer variable by delta time.
A simple solution would be to put the check on tick…while the player is not moving set the timer variable to 0…while the player is moving, increment the timer variable by delta time.