Sotonin, You hint helped me pass the level, I’ve just forgot the if statement before picking up the flag.
but specify the position for the movement is unecessary.
In this level and the levels before the following was quite suficient to make the character follow the flags:
var flag = this.findFlag();
if (flag) {
this.pickUpFlag(flag);
}
Yup, we actually make the pickUpFlag go to the flag to pick it up to make things easier for you, same way we make attack move into range or buildXY move to where it can build.