using movXY you command your hero to move at the exact coin position.
hero.moveXY(coin.pos.x, coin.pos.y)
replace the action with
hero.move(coin.pos)
and you will grab the coins at arm’s length , so more quickly.
And your boots are really slow, I had made the same mistake buying them. If you insist using moveXY replace them with 2m/s speed boots.
Please explain how it isn’t working. I grabbed the same hero/gear and was able to pass the level. Oddly enough, even when I improved the gear to boots with 2m/s and even the speed ring, the level still took as long.
@xython The hero.moveXY() is part of the starter code. While it can be changed, I don’t know how much it would help on this level. There is a delay between the coin spawn events that makes faster gear minimally more beneficial.
I see what you mean. The hero picks up the item before you actually reach the XY position and the move method will switch to the next item as soon as the original item is picked up while the moveXY will still continue to move to the exact XY. I was able to pick up two items on some of the spawn groups even with the slowest boots and slower free hero. I’m wondering if the moveXY has a slight delay to move to the next item because the hero never even hinted that there was a second item.
Hero: Lady Ida Justheart
boots: Boots of Jumping speed 1.5m/s
no speed ring
Two images below show the move option is quite better. The hero grabbed the gem and did pick up the Gold coin too. While the moveXY only goes to the gem.
I tested the level with same boots ( 1.5m/s) and an ordinary hero, but with speed ring, no Boss Star. Used also the function moveToXY from Grab coins with moveXY almost as with move boots . So the gold collected results are:
The coins seem to have too much randomness in the time that they can despawn. Sometimes the coins stay long enough to collect two in the same group. Sometimes they seem to disappear before I can touch them.