你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
cuixueying
赞同来自: Todo
private function mouseMove(e:*=null):void { //移动地图视口 tiledMap.moveViewPort(mX - (Laya.stage.mouseX - mLastMouseX), mY - (Laya.stage.mouseY - mLastMouseY)); }
var starX:Number=mX - (Laya.stage.mouseX - mLastMouseX); var starY:Number=mY - (Laya.stage.mouseY - mLastMouseY); if(starX<=0) { starX=0; } if(starY<=0) { starY=0 } if(starX>=400) { starX=400 } if(starY>=400) { starY=400; } tiledMap.moveViewPort(starX,starY));
要回复问题请先登录
1 个回复
cuixueying
赞同来自: Todo
譬如