Godot Version
4.1.2
Question
Hi! I tried to make collectables in my game, and every time when the player touches the collectable, nothing happens… I saw a similar problem in another forums, but the solution didn’t work…
4.1.2
Hi! I tried to make collectables in my game, and every time when the player touches the collectable, nothing happens… I saw a similar problem in another forums, but the solution didn’t work…
Your strawberries don’t seem to have a script attached to them.
I’m a fan of body.name for player items - no need for a group when it’s a single item.
func _on_body_entered(body):
if body.name == ("choppa"):
print("CHOPPA ON HELIPAD")
on_helipad = true
refuelling = true
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.