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

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

71. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 79%]

... onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya.stage.ad...

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

72. Laya.Tween.to 有没有监听值的变化的方法? [ 79%]

...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。          * @param   duration 花费的时间,单位毫秒。          * @param   ease 缓动类型,默认为匀速运动。          *...

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

73. 如何定义动画播放过某帧后的回调函数 [ 79%]

... 2501 关注: 2 人 182*****369 • 2016-12-14 20:35 ani.on(Event.COMPLETE,this,tryto); 没有这种对动画本身添加的监听,您能给贴一个简单的demo吗 qq502416708 • 2017-02-14 17:06 @cuixueying:你这是认真的还是开玩笑的。。。没人会这么写代码吧。。。 cuixu...

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

74. 位图切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 78%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.clip.clipX...

来源: Laya3.0_文档 发布时间: 20251010

75. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 78%]

...Map;       // 百度地图命名空间 private convertor = new this.BMap.Convertor(); // 坐标转换接口   private mapDiv; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```typescript class WatchPosition { constructor() { Laya.init(1, 1); this.init(); /...

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

76. 2.1beta骨骼动画重复播放 必抖动 [ 78%]

...时的解决方法是我监听动画完成并且设置不要重复播放 this.mArmature.on(Event.STOPPED, this, this.playStanding); this.mArmature.play("standing",false);//设置为false 不重复播放动画播放完成后在播放一次,依次循环…… 这样就没有抖动了 附件 : --> 20...

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

77. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 78%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from PixelLineSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:296 克隆。 Returns Node 克隆副本。 contains contains(no...

来源: Laya3.0_api 发布时间: 20231102

78. 发布微信后无法触发mouse_up事件 [ 78%]

...加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mouseHandler(e:laya.events.Event):void { var touches: Array<an...

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

79. 同步龙骨插槽动画方案 [ 78%]

...ring, handler: Laya.Handler, aniMode: number = 0) {         this._handler = handler;         this.mFactory = new Laya.Templet();         this.mFactory.on(Laya.Event.COMPLETE, thisthis.parseComplete, [aniMode]);         this.mFactory.loadAni(url);   ...

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

80. 我想在动画播放结束后加一个事件,怎么加? [ 78%]

...***233 赞同来自: geo 监听_ani的完成事件 _ani.on(EVENT.COMPLETE, this, function(){}); 2018-04-28 1 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 谢谢! 2018-05-02 0 0 分享 微博 QZONE 微信 AlexNine 赞同来自: 可以直接在play后面加个回调 function playAni(aniPath...

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