Hi guys i am very confused andd need help with Multiplayer Treasure Grove. I was wondering if someone could offer some help please?
Here is my code:
while True:
# Find coins and/or attack the enemy.
# Use flags and your special moves to win!
enemy = hero.findNearestEnemy()
hero.findNearestItem()
if enemy:
hero.attack(enemy)
if item:
hero.moveXY(item.pos.x, item.pos,y)
Hmm, the first time I completed this level, I managed to kill my opponent without it respawning. However, they then updated it so that they drop back into the arena. I wouldn’t bother trying to kill it but I would use Pender, Ring Of Speed, Haste and Reset Cooldown. Then I would use hero.move() instead of hero.moveXY() (if you have learnt how to use hero.move()) so I can get the coins quicker. Also, try implementing a condition that checks if the coin’s position is greater than the limits of the space you have for collecting coins - this ensure that you don’t end up bumping into the fence trying to find a coin that you can’t get to and therefore wasting valuable time. I hope this helps. (I seem to say things that I wish I had done myself, it’s getting annoying now! )
hi sorry i replyed late here is my armour. there was a bug but i eventually won by refreshing the whole site. which is why i lost my whole coe then and i had to restart.