Thanks for your reply.
But how do I use "isplaying" and "animationfinished"?
I tried this:
onready var spritenode= get_node("Sprite")
This works, but where do I put the name of the animation, so I can check if "walk" is the current animation?
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.