while loop will just run until it’s broken, which will be never in your case.
have a function that moves to the player. have an if statement in the process function that calls the function to move to the player if a certain variable like “player” is true. When the player enters the detection area set player to true or the player or whatever. When the player leaves the area set player to false or null.
Yeah I tried that but it won’t work because the body argument in the func onChasingDetectionbodyentered(body)
if I call this specific func in the process function it will show an error due to there are no arguments
godotuser123 | 2021-02-19 08:46
Don’t call it in the process function. If you connected the signal correctly it will be called when the signal is emitted.
exuin | 2021-02-19 08:57
I simply connectrd the on_body_entered signal…
godotuser123 | 2021-02-19 09:05
Okay, and did that fix it?
exuin | 2021-02-19 14:09
No bro
I can’t figure out a way to do it
the problem is the “body” paramter
if only I could use it outside of the signals