animation player ---- call func track

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By reguig
:warning: Old Version Published before Godot 3 was released.

Hi everyone, I’m a new user of godot engine and I know that this question is very stupid, so let’s get started.
I have this scene:

what I do, is that I type in only the function name to be called by the Animation Player. I know I should give it a path. But how?. I can get paths in GDscript but in that function name box I have no idea how to do it. Thanks in advance

:bust_in_silhouette: Reply From: eska

You can see and change each track’s path to the left of the track. In your screenshot, it’s .:frame for the top track, and .. for the bottom track.

For a normal track (like the top track), this path consists of a node path before the : and a property specifier after.

Naturally, for a call track (such as the bottom track), there is no property specifier. The node at the assigned path will have the function called on it.

The node paths are relative to the Root Node set in the AnimationPlayer node.
So, if the Root Node is set to .. and you want to call setWalking on the Player node, you should set the path to ../...

Thank s o much, you saved my day

reguig | 2017-05-01 22:57