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

大约有 458 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

51. animate 动画播放 怎么把攻击 开火 合起来播放 [ 86%]

...{ //初始化舞台 Laya.init(1334, 750, Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { /...

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

52. 加载学堂3D角色资源,播放动画异常 [ 86%]

...加载学堂3D角色资源,播放动画异常   //创建男角色模型 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("man/hero-mon_1129.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01,0.01,0.01); this.roleMan.transform.localPosition = new Laya.Vector3(0,-0.5,-3); this.scen...

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

53. 分享一个自己做的游戏公告功能,跑马灯效果 [ 86%]

...                  </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** ...

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

54. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 85%]

...= Laya.SpineTemplet; class SpineBinary {     constructor() {         this.aniPath = "res/powerup-pro.skel";         this.index = -1;         // Laya.init(Browser.width, Browser.height, WebGL);         // Laya.stage.scaleMode = Stage.SCALE_NOSCALE;         // Laya.stage.bgColor ...

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

55. [分享]微信小游戏声音资源批量加载卡住,临时解决方案 [ 84%]

...iniSound类中,增加函数           __proto.resetPlay=function(){ this._sound.stop(); this._sound.volume = 1; this._sound.offPlay(); }          2 在MiniSound类的onDownLoadCallBack函数中,this._sound.onError(MiniSound.bindToThis(this.onError,this));          这一句的后...

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

56. 示例 骨骼动画换装 加不上点击事件 [ 84%]

...ale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, changeSkin); } 2...

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

57. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 84%]

...建动画模板 templet=new Laya.Templet(); templet.on(Laya.Event.COMPLETE,this,parseComplete); templet.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() { //创建第...

来源: Laya2.0_文档 发布时间: 20210715

58. 动画不显示 [ 84%]

...sh(m_MapImgUrl);             Laya.loader.load(urls,Handler.create(this,loadResourceComplated));         }         private function loadResourceComplated(e:*=null):void         {             //开始异步加载资源             Laya.loader.load(m_MapImgU...

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

59. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 83%]

...      var fullPath = node.fullPath;         var keyframeNodeOwner = this._keyframeNodeOwnerMap[fullPath];         let mat = false;         if (keyframeNodeOwner) {             keyframeNodeOwner.referenceCount++;             clipOwners[nodeIndex] = keyframeNodeOwner;     ...

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

60. [临时解决]bug?加载sk问题 [ 83%]

...,预加载时报错,就是这里: laya.core.js的7430行    if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,不使用预加载,就不报错,只是不知道什么时候真的加载完成,那个_template不再为null,我就可以调用play了。 ...

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