Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+10 votes

Hey so im working on Martian Mike and I faced an issue where I can't seem to get the trophy exit thing to function.


this code gives me an error: Invalid get index "body_entered" (on base: 'null instance')

any ideas?

asked in CSC380Jan2024 by (3k points)

even mine. godot just didn't respond. it got solved when i reloaded the project

2 Answers

+4 votes

I had this issue yesterday with a different node and it stumped me for a while. Make sure you’re connecting to the right scene in the right file location and if it’s still not working reload godot. My godot also claimed I hadn’t saved for 2 hours when I did this, but upon reopening the application it had saved and worked. Seems like a godot issue.

answered by (3.3k points)
+1 vote

you can check if you declared the signal body_entered in the exit nodes script file

answered by (2.3k points)