I want to make the pet go some places on the map while my soldiers are attacking and such but using
pet.move delays the next instruction. How could I make pet move and not delay the code?
here is an example for my function
let flag = () =>{
var flag = hero.findFlag("green");
if(flag){
pet.moveXY(flag.pos.x, flag.pos.y);
}
};