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:
# Find coins and/or attack the enemy.
# Use flags and your special moves to win!
enemy = hero.findNearestEnemy()
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! )