I am making a game where you have to stay on a track, and I want to detect when the player has exited the area that is considered the track so that I can make them lose, however I haven’t been able to find out how to implement this properly.
This still doesn’t explain how to use the body arguement. How do I get the body arguement? All you’re doing is sending me a link to something I’ve said I already looked at. At the very least can you show an example of code using the argument?
The body_exited signal gives you a Node2D as an argument. That is the body that exited the area. I’m not sure what else it is you need, could you explain why the body the signal gives you isn’t enough?
Nobody is condescending, but giving us very little information to go off of means that it’s very difficult to give help. I cannot see your project or know how far along you are with godot specific knowledge.
It often helps to include examples that you have tried, and explain why they didn’t work, instead of vaguely explaining that “I tried something and it didn’t work.”