Collectables aren't working

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…
image

Your strawberries don’t seem to have a script attached to them.

2 Likes

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
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.