Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | scrub2219 |
hello, i am having trouble with a current project. Currently, I have a kinematic body that has basic movement. I have an area 2d under it. i have another still kinematic body in the scene aswell. what i want is when the area 2d surrounding the character collides with the still character, it sends a print. I disabled the collision shape for the area 2d because it would break the project. is that the problem? all my masks seem to be right.
this is the code but i don’t think its the problem
func _on_Visiblity_body_entered(body):
print(target)
if target:
return
body = target
func _on_Visiblity_body_exited(body):
if body == target:
target = null