Wondering what’s wrong with code on level “Shine Getter”. If players got the hang of figuring out different values of coins (gold, silver, bronze), other levels would make a lot more sense.
coins = self.findItems() coinIndex = 0 # Wrap this into a loop that iterates over all coins. coin = coins[coinIndex] # Gold coins are worth 3. if coin.value == 3: # Only pick up gold coins. pos=coin.pos x=pos.x y=pos.y self.moveXY(x, y)
All my character does is stand there: he’s not interpreting the last
x=pos.x y=pos.y self.moveXY(x, y)``` at all. Any help would be appreciated!