How to make animation continuous.

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

I made an animation of moving platforms, inserted the animation into the code of this platform, and now the animation is repeated only once and that’s it.

:bust_in_silhouette: Reply From: Wakatta

Assuming you’re talking about the AnimationPlayer node

  1. Open the animation editor (in the bottom panel)
  2. In the same row as Add Track to the end, enable Animation Looping

In code

extends AnimationPlayer

func _ready():
    get_animation("foo_animation").set_loop(true)
:bust_in_silhouette: Reply From: 5alidshammout

click that toggle with the continuous mark and you’re done, blue is continuous and grey isn’t