Play_backwards broken in 4.2.2?

Godot Version

4.2.2

Question

animationplayer play_backwards doesn’t seem to work anymore in the 4.2.2 release?

1 Like

How doesn’t it work? What is not working any more?

It doesn’t play the animation, neither backwards or forwards.

So it doesn’t work with forwards either? That makes it a bigger problem and unrelated to the backwards itself

No, regular animation_player.play(“animation”) works, no problem there.

But animation_player.play_backwards(“animation”) doesn’t work.

Okay, sorry got confused, does it print any error?

No it just doesn’t play the animation.

I guess you forgot to wait for the animation to finish before making the object invisible.

Here is an example:

    $AnimationPlayer.play_backwards("ani")
    await $AnimationPlayer.animation_finished     # This line is indispensable
    $SettingPanel.visible = !$SettingPanel.visible