Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Morangodev |
I want call a function from another script in(func _on_Area2D_body_entered(body))
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Morangodev |
I want call a function from another script in(func _on_Area2D_body_entered(body))
Reply From: | JimArtificer |
Generally, this is done by emitting a signal unless the other node is a child node.
https://docs.godotengine.org/en/stable/getting_started/step_by_step/scripting.html#handling-a-signal
It is in another script (two separate bodies)
Morangodev | 2020-07-23 01:30