Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | geocine |
I am making a mechanic of a Character
collecting Apples
. My Character is using a CharacterBody2D
. Both of the Nodes have a Sprite2D, AnimationPlayer and CollisionShape2D
My Apple is using a RigidBody2D
with the following settings:
Freeze: On
Freeze Mode: Static
Contact Monitor: On
Max Contacts Reported: 1
Inside my RigidBody2D
apple I added a function that connects to the body_entered
signal
func _on_body_entered(body):
print("add code to make apple disappear")
It doesn’t trigger this function and the character just passes by the Apple. What am I doing wrong?