I'm working on my very first Godot project. Just a simple 2D game in GDscript.
I have a node for my player character with an AnimationPlayer attached. What I'm trying to do is to get one animation to play one time after a condition is met (in this case, pressing a key) before switching back to the player character's default animation, which I've set up to fire with the state WALK. This is so I can make attacking and jumping work.
This should be fairly simple to set up with a Call Method Track on the animation in question, but unfortunately I can't find any of my functions on the list it gives me when I click "Insert Key", even after saving my project.
I've tried moving the declaration of the function around to different parts of my player script, and I've ensured that I've selected the Player node when I added the Method Track. I even tried just adding in empty functions and then saving to see if they would appear, e.g.
func jimmy_bob():
pass
But no matter what, none of the functions that I have created in my scripting will appear when I add them as a Key in the animation track. What have I done wrong?