Need to move back and forth between animation frames via GDScript

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Hadi 1

Hi, I’ve created a simple animated box and exported with .dae format. Imported into godot with no issue. The animation has 5sec length with few keyframes. my question is that how can i have control over the object animation in gdscript ? You see i like to ask godot to display the box animated at 00:03 (or reference with other unit types, other than time … anything) … Is there such method in AnimationPlayer object ?

So basically i wanna jump between animation frames back and forth in code.

:bust_in_silhouette: Reply From: Hadi 1

Sorry ! I just rushed to posting the question. “seek” function did the trick. :slight_smile: