0 votes

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:
enter image description here

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

asked May 1, 2017 in Engine by reguig (15 points)

1 Answer

0 votes
Best answer

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 ../...

answered May 1, 2017 by eska (1,038 points)
selected May 1, 2017 by reguig

Thank s o much, you saved my day

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.