(I'm new to Godot, so plz don't hurt me <3 )
I'm trying to detect if my character enters an area I've set up, but it keeps giving me this error:
error(4,1): The method "bodyshapeentered" isn't declared in the current class.
My understanding was it was already a built in method for the area node:
https://docs.godotengine.org/en/latest/classes/class_area3d.html
Is there something I need to tell it to unlock it, or do I have to set some values earlier in the script?
Here's what I've got so far:
extends Area
func _physics_process(delta):
if body_shape_entered($KinematicBody):
if body.has_method("_in_water"):
body._in_water()
return "yup, you should be drowning"
return "nope"
I know there are probably much more efficient ways of checking every physics frame, but I'm just trying to make some sort of progress here.
Any and all suggestions are appreciated.
<3