Animation plays only once

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

I have an Animation wich runs every game round. (Looks like this: User presses button → Animation → next Round)
But the animation only runs in the first round. Then, in the others it’s just skipping (or something) the animation.
Does anyone know how to fix this?

Could you give more information about the way you play this animation? Playing an animation always plays it, I’m not aware of a problem to do so, there must be something wrong in your own code.

Zylann | 2017-02-07 20:15

I’m just using get_node("anim").play("choose").
I’ll check the code again. Maybe I find the bug.

Skayo | 2017-02-07 20:19

Ok I fixed it. Thank you for your help.
Is there any way I can close this question?

Skayo | 2017-02-07 20:27

what about making answer yourself about what you did about this, and take it as best answer?

volzhs | 2017-02-07 22:50

:bust_in_silhouette: Reply From: Skayo

I fixed it myself:
There was an bug in my code wich made the animation only play once.