Shine Getter Help python [Solved]

My character won’t move after collecting three coins

# To grab the most gold quickly, just go after gold coins.
while True:
    coins = hero.findItems()
    coinIndex = 0
while coinIndex < coins.length: 
    coin = coins[coinIndex]
    coinIndex = coinIndex + 1
    if (coin.value == 3):
        hero.moveXY(coin.pos.x, coin.pos.y)
        coinIndex += 1
    else:
        pass

indent all of this by one

change that to

    while coinIndex < len(coins):

delete this

1 Like

Thank you so much it worked

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.