Thanks for your reply.
But how do I use "isplaying" and "animationfinished"?
I tried this:
onready var spritenode= get_node("Sprite")
if spritenode.is_playing():
print("animation playing")
This works, but where do I put the name of the animation, so I can check if "walk" is the current animation?
if spritenode.animation_finished():
print("animation finished")
This doesn't work. I get "Nonexistant function".
Unfortunately I found the docs not very helpful so far, because there are no examples on how to properly use most things in actual code.