Need help blank raid HELP[SOLVED]


#1

HELP ME

while coinIndex < len(coins):
        # Get a coin from the coins array using coinIndex
        coinIndex
        # Collect that coin.
        hero.moveXY(coin pos.x, coin.pos.y)
        # Increase coinIndex by one.
        coinIndex += 1


#3

Fixed your overuse of characters.

Here, you never defined coin. Do coin=coin[coinIndex] which gets a coin for us.

You forgot the the period between coin and pos.


#4

okay thanks you helped me a bit but now it says line 16 ReferenceError: coinIndex is not defined


#5

You forgot to define coin index before the loop


#6

how do i do that???


#7

:man_facepalming:
I told you, you define coinIndex=0 before the loop.


#8

okay thanks :grinning::grinning::crossed_swords::crossed_swords:


#9

This topic was automatically closed after 33 hours. New replies are no longer allowed.