im having trouble creating a food item to check the current health of the player
on collect do
if health<maxhealth then
sound "Eat"
health += 1
swap "white"
elseif health==maxhealth then
swap "white
end
giving me a error im not sure what im doing wrong.