You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var data: any = egret.XML.parse(e.currentTarget.response);
this._tileMap = new tiled.TMXTilemap(400, 600, data, this._url);
this._tileMap.render();
this.addChild(this._tileMap);
刚使用上TileMap库,没有找到移动地图的API,
我按照例子已经初始化出来地图并显示了
设定的渲染区域为400x600。我没有找到移动地图的方法,请问如果要移动地图该使用什么方法,在哪个类下呢?(移动x,y,会把渲染区域也跟着移动)
读了下Tiled.js,没有找到offset的方法,draw方法都是x0, y0开始画的
PS: 如果把render width & render height设成图片的大小,那么渲染区域都变很大了,需求只想在比如 200 x 200的区域渲染
The text was updated successfully, but these errors were encountered: