How Do you code a frame

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By BadLegz

For Example there are two nodes, one node performs an animation using frames, the other one observes the other node if it plays that frame and it will react. but my problem is, that I don`t know how to code or signal a frame… please help… Im researching all over the Godot Docs,
YouTube, Google, EVEN BING!, even bing… and I found there is a Q&A in Godot so I asked the question here…

:bust_in_silhouette: Reply From: rustyStriker

first of all, you question is really vague, you should really try and make it simpler for people to answer, and dont ask from people to write a full script for you either, because its just not fair!

as for the question, if i understand correctly you can use signals.connect function, and the call method option in the animation player.
You can create a signal for each scene(or a signal with a variable to tell which scene), connect those signals to the functions which will response, and use the animation player call method to emit the signals(explanations on all you can find both in the Q&A and in the docs)

I agree with this answe : first of all, you question is really vague, you should really try and make it simpler for people to answer, and dont ask from people to write a full script for you either, because its just not fair!

as for the question, if i understand correctly you can use signals.connect function, and the call method option in the animation player.
You can create a signal for each scene(or a signal with a variable to tell which scene), connect those signals to the functions which will response, and use the animation player call method to emit the signals(explanations on all you can find both in the Q&A and in the docs)

sharpmisr | 2020-08-21 18:23