Disable Flags for Levels in Desert


#1

Might Sand Yak! and Oasis, should have restriction on flags.

Instead of coding a solution on the method it suggests, I can simply create a method to manually dodge the Yaks (Mighty Sand Yak!) or have the hero cross the road to the Oasis (Oasis).

/loop{
flag = this.findFlag(“green”);
if (flag){
position = flag.pos;
x = position.x;
y = position.y;
this.moveXY(x, y);
this.pickUpFlag(flag);
}
}
/


#2

Good point; I’ve added the flag restriction in all these new relative movement levels and will deploy it later today. Thanks!


#3

Unfortunately the flags will not be allowed anymore, the code for just following the flag could be small:
loop{
var flag = this.findFlag();
if (flag) {
this.pickUpFlag(flag);
}
}

no need for the move method.


#4

Thanks for showing me the improvement for picking up flags!