#problem with detecting
1 messages · Page 1 of 1 (latest)
what node is button
and both have the same colison mask and layer
i have recreated it and it works for me
extends Area2D
func _on_body_entered(body: Node2D) -> void:
print("entered")
are you disabling collision somewhere
no
check collision layer in the main scene maybe you have it set differently in the trashcan scene and in the main game scene
main scene overwrites the collision layer settings
but they both are seperated scenes
but you are adding trashcan scene in to main no ?
yes
then check collisions on the packed scene
they look good
thats weird, its working correctly on a fresh scene so there must be something interfering somewhere
Okay
So i kind of fixed it(I avoided problem and did it different way)
and I just putted to trash bin area2d and I did on_area_entered
Anyway
Thank you so much
didnt do anything but hopefully the issue wont come back