How to achieve calling animation.play("idle")? #2733
Unanswered
XX4free25XX
asked this question in
Q&A
Replies: 1 comment
-
|
You may be able to pull this off with the Call node. There is a bit of set up to make it happen, as the tool isn't explicitly trying to make this use case easier, but you can build around it to accomplish just about anything you want. Call node lets you call a function and pass arguments to an autoload global script. If that script knows where the enemies are, then its pretty easy to do. Here are some steps to get that done. Godot_v4.6-stable_win64_mhDkhZXEf0.mp4The keys points.
There are other ways you can accomplish this, via custom events and the like, but this is the most out of the box way to get it done. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions