Looking at the code, the problem could be how you are calling the play
function. I think it needs to be Sprite.play("Crouch", false)
to play backwards.
That said, I think the Godot editor would complain, so this likely isn't the issue. This sounds like a bug, so I would report it to the Godot GitHub repository, after searching to make sure no other issues on this bug have already been opened.
Out of curiosity, does the following work:
if Input.is_action_pressed("ui_up"):
Sprite.play("Crouch")
Sprite.play("Crouch", false)
If this works, then it might be something is not being properly set when the reverse
flag/boolean is true and the animation is different then what is already playing, which would defiantly be a bug.
(Side note: welcome to the forums!)
OMG i just cannot format this text to show correctly :(
I reformatted your post :smile:
You can edit your post to see the changes I made. The changes were primarily replacing dashes (-
) with underscores (_
) to tell Markdown to make a horizontal line, removing the #
, indenting all of the code blocks with a single tab so it is formatted as code, and removed all of the >
characters.