Coding game: catching coins and avoiding bombs

Update: the health is still not working. The score goes up now but it doesn’t matter if a coin or a bomb hits the ship, even though there should be a difference. It should only go up with the coins and the health doesn’t work at all. I don’t understand what you meant by use if(isCoin) how exactly should I use it in this context?

1 Like