大约有 218 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
...40x240的动画,代码如下_proto_.onAnimation_BirdSing = function () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBirdSing.index = 0; // 当前播放索引 this...
来源: Laya_社区 发布时间: 20171026
...ya.Sprite { private swimpoolani:Laya.Animation; constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ Laya.Animation.createFrames([swimpoorpath01,...
来源: Laya_社区 发布时间: 20190805
... LM20081991 • 2018-01-25 10:10 能否举一个例子,比如我现在是 this.skill = new Laya.Animation(); this.skill.play(); 就是播放技能的动画。是this.skill.interva()这样吗, 中间有没有什么参数?
来源: Laya_社区 发布时间: 20180125
...么优化。 private factory:Laya.Templet; private avatar:Laya.Skeleton; this.factory = new Laya.Templet(); this.factory.on(Laya.Event.COMPLETE, this, this.parseComplete); this.factory.on(Laya.Event.ERROR, this, this.onError); this.factory.loadAni("sp/aa.sk"); this.avatar = this.factory.buildArmatur...
来源: Laya_社区 发布时间: 20170718
... =... 2019-02-13 0 0 分享 微博 QZONE 微信 姜波 赞同来自: 通过this.animator.getCurrentAnimatorPlayState(0).normalizedTime>=1去判断当前动画是否播放完成 2019-02-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...
来源: Laya_社区 发布时间: 20181105
...kinModel/Zombie/old/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { zombie.transform.rotation = new Laya.Quaternion(-0.7071068, 0, 0, -0.7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var skinAniUrl = [ "../../res...
来源: Laya_示例 发布时间: 20251130
...play(); chrome 调试: addChild(node) { if (!node || this.destroyed || node === this) return node; if (node._zOrder) this._setBit(Const.HAS_ZORDER, true); if (node._parent === this) { ...
来源: Laya_社区 发布时间: 20191203
...接 提交 1 个回复 qian 赞同来自: a372853273 ani.on(Event.COMPLETE,this,onComplete); 2018-03-20 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 a372853273 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 ...
来源: Laya_社区 发布时间: 20180320
...合我们调试代码 我们打开Floor.js 找到 Laya.timer.frameLoop(1, this, this.onLoop); 把这一行代码先给注释了 接着 我们先理一理自己的思路 我们要做玩家踩在地板上 那就要用到碰撞检测 上图中紫色的小点点是 两个物体的 坐标起始点 假设...
来源: Laya_社区 发布时间: 20160801
图集动画结束回调有延迟 this.ded.addLabel("animOver",9); this.ded.on(Laya.Event.LABEL, this, this.onHitOver); this.ded.on(Laya.Event.COMPLETE, this, this.onHitOver); 两种方法都会有延迟,不能100%执行 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20181108