if (tarX !=undefined){
//trace(tarX+ " "+_x);
if(tarX > _x+ speed/4) {
xinc = speed;
if(_x+xinc >= tarX) tarX = null;
}else if(tarX < _x-speed/4){
xinc=-1*speed;
if(_x+xinc <= tarX) tarX = null;
}
}
if (tarY !=undefined){
if(tarY > _y+ speed/4) {
yinc = speed;
if(_y+yinc >= tarY) tarY = null;
}else if(tarY < _y -speed/4){
yinc=-1*speed;
if(_y+yinc <= tarY) tarY = null;
}
}
这代码中的tarY和tarX是指代什么,看不懂,谁教教我
