大约有 486 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
...extends Laya.Sprite { public body :Laya.Animation; constructor(){ super(); this.body = new Laya.Animation(); Laya.Animation.createFrames(["res/war/hero_fly1.png","res/war/hero_fly2.png"],"fly"); this.addChild(this.body); this.body.play(0,true,"fly"); //获取动画大小区域 var bound:Laya.Rectang...
来源: Laya_社区 发布时间: 20180427
...f' of null showAni(panel:Laya.Box) { if (!panel.contains(this)) { panel.addChild(this); this.pos(0,110); } let i = 1; this.ani1.play(0, false);//出错了 this.an...
来源: Laya_社区 发布时间: 20170614
...现的这是代码 //swf动画 createSWFAnimoton(strSWF,strImg,state):any{ this.swfAni = new Laya.MovieClip(); this.swfAni.load(strSWF,true,strImg); this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.sw...
来源: Laya_社区 发布时间: 20170505
用Loader加载完atlas,然后使用animation播放问题 this._load = new Laya.Loader() this._load.on(Laya.Event.ERROR, this, this.onError); this._load.on(Laya.Event.COMPLETE, this, this.loadComplete); this._load.load(this._data.url, Laya.Loader.ATLAS, true); 加载完成后 this._ani = new Animat...
来源: Laya_社区 发布时间: 20171212
...tap.mp3",type:Laya.Loader.SOUND});Laya.loader.load(resurls, Handler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src)); } 在chrome,安卓下都是正常的,在ios和mac Safari下是undefined 放在一个sprite的cl...
来源: Laya_社区 发布时间: 20170811
Uncaught Error: Animation:this playName has exist with another clip. 这是什么bug? 附件 : --> 2019-04-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 这不是说动画重名了吗...
来源: Laya_社区 发布时间: 20190407
....speed = 0.4f; anim.Play("change_out"); Laya里面我的代码如下 ani = this.scene.getChildByName("cha1").getComponentByType(Laya.Animator); //正常播放动画 ani.play("change_out", 0.2); 请问,有相关API对播放速度单独设置吗? 另外补问一下,Laya的动画融合大...
来源: Laya_社区 发布时间: 20180612
...代码如下: var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite()...
来源: Laya3.0_文档 发布时间: 20251010
...的链接 提交 2 个回复 赞同来自: anifish1.on(Event.COMPLETE,this,complete) function complete(){ } 你是不是要问这个 2018-10-11 0 1 分享 微博 QZONE 微信 FullyI 赞同来自: 我用这个方法监听动画播放完成,有问题,...
来源: Laya_社区 发布时间: 20181011
...); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene("test/TestScene.scene"); } onEnable() { this.loadActor(this.actor1,"comp/r_01_...
来源: Laya_社区 发布时间: 20190730