Sprite animation not playing when game is running

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

Hello,
I made a simple sprite animation (2D, sprite and animationPlayer) and in editor animation working but when I run ‘game’ there is no animation just static sprite.

animationPlayer.is_playing()

returns True same as

animationPlayer.get_current_animation()

returns test_anim (animation name)
Where can be the problem?

EDIT: Problem solved, I was trying to AnimationPlayer.play(‘anim’) every frame so here is a problem :slight_smile:

Check playback options on the AnimationPlayer, maybe is playing but not active.

eons | 2017-05-03 04:18

Hi eons AnimationPlayer is active and playing, just can see any animation :slight_smile: I new to animations in Godot so probably I doing something wrong…

As I said I did stupid mistake :slight_smile:

swipis | 2017-05-03 17:34