I'm very new, so this might be a no brainer, but I keep getting this error in the debugger when I try to test my item pickup system.

"Invalid call. Nonexistent function 'get_overlapping_ bodies' in base 'CollisionShape2D'."

Is it a script problem?
I saw others attach copies of their games, should I do that? Would I pick one scene or the whole file and attach it?
Or would it be better to screenshot the code and attach that?

  • xyz replied to this.

    SilverFish Yeah, it's a script problem. From the error message it looks like the script is trying to call get_overlapping_bodies() on an object of type CollisionShape2D. If you look at the reference for CollisionShape2D class, you'll see that there is no such method in this class. The method belongs to Area2D class. It should be called on object of that class.