How to emit signal from animation player

Godot Version

4.0

Question

I am trying to immitate rowboat movement. I want to emit a signal every time the player reaches a spesific point in the rowing animation so i can move the boat faster etc. If i understand correctly this can be done through the animation player by using a Call method track and the emit_signal key type. But i dont know what to do after that how do i actually use that signal inside my script ?

You can call any function on any node from the animation player within the scene. So depending on you responsibility arrangement you can just call the observer function to just row. Or you can set up a custom signal from the animation player script and call a wrapper function to emit the signal.

1 Like