我已经指挥了一堆小兵到某些位置,但是当我指挥这个特定的位置时,它只会不断发出眩晕。我所做的与我控制其他小兵的方式没有什么不同,但它的工作方式并不相同。其他人保持不动。
if(creep == Game.creeps["Transport1"])
{
creep.moveTo(harvesterLoc.x, harvesterLoc.y - 2);
creep.transferEnergy(Game.creeps["Transport2"]);
}
if(creep == Game.creeps["Transport2"])
{
creep.moveTo(harvesterLoc.x, harvesterLoc.y - 3);
creep.transferEnergy(Game.spawns.spawn1);
}
第一个有效,第二个无效?第二个的位置在城墙内,这会引起问题吗?