0
所以这是我的问题。我有代码设置调用每当我的球员是在A *寻路阵列中的最后一个目标函数...我怎么能让这个功能睡一段时间?
public function rakeSoil(e:Event):void {
var:Cell = Grid.getCellAt(player.x/50, player.y/50);
if (cell.isWalkable == false) {
return;
else {
//here is where i want to do the sleep code so this doesnt happen straight away? If possible.
target.sprites = [grass];
}
}
谢谢你们:)
为什么你想让它睡觉?你需要睡多久? – Staven 2012-02-06 19:23:18