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

in Engine by (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 ../...

by (1,086 points)
selected by

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.