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

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

141. 人物行走图动画 [ 71%]

... = true):void 加载资源。 Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS);   这里的load只有三个参数,而事实上用到4个,不清楚。。。   还有ani.index = 1;我改成0,-1,2,可是在经过play后面自动变成1,还有经...

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

142. 同一个Animation,创建多个实例只能显示一个(测试项目已上传) [ 71%]

.../////////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); }   附件 : --> 相关链接 : https://ask.layabox...

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

143. 动画加载不出 [ 71%]

...main函数里面 叔年心~厌世 • 2019-10-10 16:45 for(var i=0;i<this.moneyArr[rr].length;i++){ let sp=new Laya.Animation(); //添加金币 sp.loadAnimation('anis/money.ani'); sp.play(0,true); loadder.addChild(sp); loadder.name = 'money'; sp.pos(this.moneyArr[rr][i],-15); } 叔年心~厌...

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

144. Animation类如何调用complete事件 [ 71%]

...交 1 个回复 Monica - 知识达人 赞同来自: ani.on(Event.COMPLETE,this,onComplete); 2017-09-27 0 7 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 chenhuanqi23 相关问题 两个对象new了一个相同的...

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

145. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 71%]

...andler = Laya.Handler; class GameMain{ constructor() { Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets.push({ url: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): ...

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

146. 骨骼动画播放完了,回调隐藏,回调在哪里 [ 71%]

...ory.loadAni("NiuXingTianXia/spine/start2.sk"); mFactory.on(Event.COMPLETE, this, function () { mArmature = mFactory.buildArmature(); mArmature.pos(650, 330); mArmature.play(0, false); this.addChild(mArmature); }); 2017-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

147. 播放一个ani的动效报错parse animation fail:ani2,empty animation created [ 70%]

...           girlsMc.play(0,true,"ani2");             this.cmc.addChild(girlsMc); 附件 : --> 2019-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ayiui4566 赞同来自: 靠,动效名...

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

148. 急急急,如何设置按钮点击加载ani [ 70%]

...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION);         }                  private function beginLoad():void {             //加载引擎需要的资源             Laya.load...

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

149. [LayaAir3]Laya3.2.2版Spine 3.8,Spine2DRenderNode动画播放完毕后,playState返回不正确 [ 70%]

...enderNode.PAUSED   简单分析一下,_update 里调用了 stop(),将this._currentPlayTime = 0; 但是紧接着后面又将 this._currentPlayTime = state.getCurrentPlayTime(this.trackIndex); 此时 this._currentPlayTime 为非零,结果就是 if (this._currentPlayTime) return Spine2DRende...

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

150. 一个EffectAnimation只能创建一个动画效果吗 [ 69%]

...nimations"]; if (aniData && aniData[0]){ var data=aniData[0]; this._setUp({},data); if (data.nodes && data.nodes[0]){ this._aniKeys=data.nodes[0].keys; } } } });

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