I used this code to win the AI Game:
During the use of this code, my character Tharin tries to walk through the fence on the edge of the battleground. Is this a bug or a problem in my code?
if hero.time < 200:
coin = hero.findNearestItem()
hero.moveXY(coin.pos.x, coin.pos.y)
You can see this post Marauder: complicated way is only slightly better to find how I cope usually with coins and enemies. As a side note - I almost never use
moveXY() and try to substitute it with move(). Even with the best moveXY boots and trying to do some tricks I cannot reach the effectiveness of advanced move boots. If you continue to have problems after reading some posts show here your code.