• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 520 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0049 秒)

301. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 65%]

...载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.stage.addChild(testView...

来源: Laya_社区 发布时间: 20180525

302. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 65%]

...e(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer ...

来源: Laya_社区 发布时间: 20170627

303. fillTexture使用问题 [ 65%]

...ructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png"); this.width = 1000; this.height = 500; this.graphics.fillTexture(t, 0, 0); this.zOrder = -1; } } 2017-07-14 ...

来源: Laya_社区 发布时间: 20170714

304. 颜色滤镜 差值变化 [ 65%]

...o(ColorTool.getInstance(), { persent: 1 }, time * 1000, null, Laya.Handler.create(this, this.setPersent, [0])); }  /** * 颜色改变函数 * @param color 目标色值 * @param lastColor 当前色值 * @param persent 差值 */ public colorFilter(color: number, lastColor: number, persent: number): L...

来源: Laya_社区 发布时间: 20180930

305. ipad 声音管理无法暂停继续播放,只能从头开始,pc端正常,代码如下 [ 65%]

... this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1));             this._btnTimeOutPlay.visible = true;             this._btnPlaySound.visible = false;             this.playBoo = false;             return;         }  ...

来源: Laya_社区 发布时间: 20190919

306. tween有这个一个bug [ 65%]

...画 Laya.Tween.to(point,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); timeline在一开始还在正常执行, 当有一半左右的ui元素进入到场景时, timeline循环卡住不动了, 等所有ui动画执...

来源: Laya_社区 发布时间: 20180118

307. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 65%]

...ayIcon") as Image;                 processTimer = ProcessTimer.create(img,new laya.maths.Size(70,70));                 processTimer.setPercentage(100);                 processTimer.setType(ProcessTimer.PROGRESS_TIMER_TYPE_RECT);                 process...

来源: Laya_社区 发布时间: 20180404

308. Laya.URL.basePath加载不到网络资源 [ 65%]

..., type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));   Laya.URL.basePath = "https://piggy.q1.com"; var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "im...

来源: Laya_社区 发布时间: 20180531

309. 分包后, 资源加载问题 [ 65%]

...le,并添加到舞台显示 Laya.loader.load("js/loading100.js", Handler.create(this, complete), null, Loader.TEXT); } private function complete(data:*):void { trace("ok3") __JS__("window.eval(data)"); //此行报错 var load:* = __JS__('new loading100()'); Laya.stage.addChild(load); trace("loadin...

来源: Laya_社区 发布时间: 20170725

310. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 65%]

...   // 初始化物理引擎             engine = Matter.Engine.create({enableSleeping: true});             Matter.Engine.run(engine);                          var render = LayaRender.create({engine: engine, width: 800, height: 600,             options: ...

来源: Laya_社区 发布时间: 20170822