Item not being picked up after collect?

First time using pulp and kinda new to game development but, Im trying so when a food item gets collected it dissapears. It worked earlier and now it doesn't. I wonder is it me or is it a bug in the website. Also, the item is registered as picked up, so the counter increases each time, it just doesnt dissapear.
Trying to make this food item dissapear when you collect it. It worked earlier but now it's not dissapearing, I still collect the item as in the counter goes up but the item stays there.
Heres the code:

on collect do
	shake 0.5
	if FoodCounter<4 then
		say "Arf! Arf! MMM!   -doggo"
		FoodCounter++
		hide
	else
		say "Ughh... I'm too full.    -doggo"
	end
end

Using the "collect" function automatically removes the replacement of the tile after collection. To re-add it, do this:

on collect do
play "PUT_YOUR TILE_HERE"
end

Happy coding!

1 Like