大约有 19 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
... private var m_bkSound:Sound; private var m_mapLayer:Sprite; private var m_MapImgUrl:String; private var m_Role:Animation; private var m_RolePosition:Point = new Point(1200,1000); private var m_MovStartPos:Point =...
来源: Laya_社区 发布时间: 20170921
...dMap destroy():void 销毁地图 TiledMap getLayerByIndex(index:int):MapLayer 通过索引得MapLayer TiledMap getLayerByName(layerName:String):MapLayer 得到指定的MapLayer TiledMap getLayerObject(layerName:String, objectName:String):GridSprite 得到对象层上的某一个物品 Ti...
来源: laya_api 发布时间: 20170929
...dMap destroy():void 销毁地图 TiledMap getLayerByIndex(index:int):MapLayer 通过索引得MapLayer TiledMap getLayerByName(layerName:String):MapLayer 得到指定的MapLayer TiledMap getLayerObject(layerName:String, objectName:String):GridSprite 得到对象层上的某一个物品 Ti...
来源: Laya2.0_api 发布时间: 20190513
...Laya.Sprite(); this.sp.graphics.drawRect(0,0,100,100,"#FF0000"); var mapLayer = this.tiledMap.getLayerByIndex(1); console.info(mapLayer.layerName); this.sp.pos(0,0); mapLayer._childs[0].addChild(this.sp); } } new GameInfo(); 遇到的问题1 把精灵插入地图时 如果代...
来源: Laya_社区 发布时间: 20171125
...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var MapLayer = Laya.MapLayer; var TiledMap = Laya.TiledMap; var Point = Laya.Point; var Rectangle = Laya.Rectangle; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var tiledMap; var layer; var sprite; (function() { // 不支...
来源: Laya_示例 发布时间: 20251130
...I DocumentationAll Packages | All Classes | Index | Frames No Frames MapLayerProperties | Methods | Events Packagelaya.mapClasspublic class MapLayerInheritanceMapLayer Sprite Node EventDispatcher Object 地图支持多层渲染(例如,地表层,植被层,建筑层等) 本类就是...
来源: laya_api 发布时间: 20170929
...I DocumentationAll Packages | All Classes | Index | Frames No Frames MapLayerProperties | Methods | Events Packagelaya.mapClasspublic class MapLayerInheritanceMapLayer Sprite Node EventDispatcher Object 地图支持多层渲染(例如,地表层,植被层,建筑层等) 本类就是...
来源: Laya2.0_api 发布时间: 20190513
... 销毁地图 Returns void getLayerByIndex getLayerByIndex(index: number): MapLayer Defined in laya/map/TiledMap.ts:1395 通过索引得MapLayer Parameters index: number 要找的层索引 Returns MapLayer getLayerByName getLayerByName(layerName: string): MapLayer Defined in laya/map/TiledMap.ts:137...
来源: Laya3.0_api 发布时间: 20231115
...该是BG段的长度,难道不是么?并且细心的同学会发现在maplayer计算坐标的位置都会用这个width/2方式计算格子和屏幕坐标如方法 /** * 通过地图坐标得到屏幕坐标 * @param tileX 格子坐标X * @param...
来源: Laya_社区 发布时间: 20161109
...dule laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class TiledMap_IsometricWorld { private...
来源: Laya2.0_示例 发布时间: 20251130