On line 22 where it says “hero.moveXY(coins.pos.x, coins.pos.y),” you need to replace it with “hero.moveXY(coin.pos.x, coin.pos.y).”
2 Likes
oki dokie (i hate 20 char rule)
didnt work (i hate 20 char rule)
i solved it i only needed to remove the health system
or its also that i just need to add coins before [coinIndex]