How can i continuous playing the animationplayer from the frame where is was stopped

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pvt
:warning: Old Version Published before Godot 3 was released.

Hi,
is it possible to replay the animationplayer from the frame(position) where it was
stopped? And how can i do it?
thanks in advanced

:bust_in_silhouette: Reply From: genete
   var pos=anim.get_current_animation_pos()
   anim.stop()
   # animation stopped here 
   anim.play(get_current_animation())
   anim.seek(pos)
:bust_in_silhouette: Reply From: rgrams

I made a little helper script to put on AnimationPlayers whenever I need to use them like this. (proper pause, resume, play, reverse, etc.) I posted it here if you want to try it.

thank you for your supply.
Its very useful.

pvt | 2016-08-30 15:21