大约有 1,644 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1482) Laya2.0_文档(45) Laya3.0_api(26) Laya_示例(21) Laya3.0_文档(19) Laya2.0_api(18) laya_api(17) Laya2.0_示例(16)
...。 下面粘贴一个小示例(仅供参考)package { import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; public class SwfBinar...
来源: Laya_社区 发布时间: 20151224
...自: laya123 package huamao.layer.ui { import app.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var r...
来源: Laya_社区 发布时间: 20171124
...o.pos(200, 0); //切换动画皮肤 hero.showSkinByIndex(0); //播放 hero.play(0, true); this.img_sample.addChild(hero); this.sk_hero = hero; Laya.timer.once(200, this, () => { hero.on(Laya.Event.CLICK, this, this.onHeroClick); let bbox = hero.getSelfBounds(); hero.hitArea = bbox; }); } 附件 :...
来源: Laya_社区 发布时间: 20180905
....anim.pivotX = 0; this.anim.pivotY = 0; this.anim.interval = 30; this.anim.play(); 在加载这个动作以前我会先清理上一个动画的资源 this.anim.clear(); Laya.loader.clearTextureRes( url); 别抢小虎 • 2018-05-08 10:52 现在游戏逻辑有点多,只能这样描述一下流程 w...
来源: Laya_社区 发布时间: 20180507
...题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 问题状态 最新活动: 2018-05-30 16:54 浏览: 1421 关注: 2 人 Mr.余 • 2018-05-31 18:01 用LayaAir3D转换工具,版本1.7.16beta。导出场景,使用LayaAirRun ,打开连接报错,连接不上是咋...
来源: Laya_社区 发布时间: 20180530
...tionZ += norDir.z * 0.017 * this.nSpeed; //this._RoleSeeForward(dir); this.PlayAni(); } public PlayAni() { this.animator.play("walk",1); } 2019-10-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 189*****132 相关问题 Animator 如...
来源: Laya_社区 发布时间: 20191026
...碰撞检测在运动的上面,检测到碰撞信息后删除对方。 PlayerMove.prototype.onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other...
来源: Laya_社区 发布时间: 20181017
...ill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play(); 这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在IDE的layaair调试器中也很明显。 附件 : --> 2018-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20180425
...题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 问题状态 最新活动: 2019-08-19 10:50 浏览: 2406 关注: 3 人 StevenMiao • 2019-08-16 13:41 谢谢!替换之后可以了。 关于透传我...
来源: Laya_社区 发布时间: 20190814
为什么说没有 playByFrame方法 var anifish = fish.addComponent(Laya.SkinAnimations); anifish.templet = Laya.AnimationTemplet.load("fish/denglongyu/denglongyu.lsani"); anifish.player.playByFrame(0,1.0,2147483647,0,30,30);//游动 // anifish.player.playByFrame(0,1.0,2147483647,40,72,30);//...
来源: Laya_社区 发布时间: 20170926