smooth animation; stop animation when char stops