Help on savern desert: hoarding gold


#1

I think the level on Code-Combat, and i have experienced a funny looking thing. every time i move about one pixel, my hero will say, i have 3 gold, i have 6 gold (for a check every time, because the character did not stop until i started experiencing this. What am i doing wrong?


#2

Can you please post your code? Is it showing any code errors?


#3

Also please post your code with proper formatting according to the FAQ.


#4

Using .move equipment instead of moveXY in a loop while distance to destination > 1 and have your say(hero.gold) as part of the loop?


#5

I tried that. like hero.move(gold.pos)


#6

No. I deleted my code because i got angry. But it was like i said hero.move(item.pos) then say.(“I have”+ totalGold)