Ok, ok, ok let’s back it up a bit here. How far are you? That code in VERY limited and will accomplish nothing. First you want a loop where you constantly define :“flag”
loop:
flag=self.findFlag()
Then you want to move to that flag.
if flag:
self.moveXY(flag.pos.x,flag.pos.y) or self.move(flag.pos)
But honestly I don’t see the use of flags for this level.
Do that same as above except with items to collect gold.
loop:
item= self.findNearest(self.findItems())
Then you can be creative and attack attack, projectile dodging etc…
I often see a glitch where either you re-spawn dead and can’t move, or the first coin it seeks is out of the gated boundary and you can’t get to it (might have to try isPathClear() on all coins).
It’s easy to beat the game but when you do the challenges this glitching makes it impossible to solve solutions to beat other players. Super annoying why haven’t they fixed the glitch in 2 years time
I was able to repro this with the best armor and using Pender with 432 health starting out. Essentially, everyone (Omarn, burls and skeletons) attacks the location she is landing at and it kills her in midair. You can see the blue circle where she is going to land and Pender dead a second after she spawns. I’m fighting SCTP2P ranked # 2 on blue. Before Pender is even visible on the screen she already lost 125 health.
Found a more interesting situation where the hero fell dead even with health and never recovered. Hero laid there for almost 10 secs before the enemy killed me. It happened on the next spawn too and then the enemy won.
One piece that may be linked to the problem, the hero lost the enemy during an invisibility spell and never found the hero again. Not sure if that combination may be causing the glitch.
Please delete it from here and send it to me in a PM (personal message) because this is a multiplayer level and someone else might steal part of the code from you or use it to exploit your tactic. Do you understand, @alinaqighulam?