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

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

821. 学习官方视频教程中飞机大战游戏出现的问题!! [ 54%]

...   this.addChild(this.playAnim);             this.playAnim.on(Laya.Event.COMPLETE,this,this.onPlayComplete);         } onMouseMove():void{         //根据鼠标位移主角方法         this.hero.pos(Laya.stage.mouseX,Laya.stage.mouseY);     }     2018-05-03 0 0 分享 微...

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

822. 无限循环滚动列表 [ 54%]

...同来自: 他也是自己写的  监听滑动  this._list.on(fairygui.Events.SCROLL, this, this.doSpecialEffect); 通过cell 距离 设置他的缩放比 MainPanel.prototype.doSpecialEffect = function () {         //change the scale according to the distance to the middle         var mid...

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

823. hitArea用法问题 [ 54%]

...hitArea = closeRect;  // closeBtn 为 Laya.Button 实例 this.closeBtn.on(Event.CLICK,this,this.closeWin); private closeWin():void {     console.log("the window has closed..."); } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

824. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 54%]

...(this.x + this.width) < this.maxRight){ this.isOutComplete = true; this.event(Floor.OUT_COMPLETE, this); }else if((this.x + this.width) < 0){ //判断整个floor是否不在屏幕里面了 如果不在了 移除当前floor Laya.timer.clear(this, this.onLoop); this.visible = false; this.event(F...

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

825. Animation播放完一次动画后的回调问题 [ 54%]

Animation播放完一次动画后的回调问题 starView.ani1.on(Laya.Event.COMPLETE,null,OnAnimation); 这个ani1是这个动画这样设置回调不对吗? 我看API那边事件就是这个COMPLETE 2017-02-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

826. 使用发光滤镜和模糊滤镜一直报错 [ 54%]

...(LearnGlowFilter.ts:15)     at GameUI.onTipClick (GameUI.ts:36)     at EventHandler.__proto.runWith (laya.core.js:1399)     at Label.__proto.event (laya.core.js:1156)     at TouchManager.__proto.sendEvents (laya.core.js:11253)     at TouchManager.__proto.onMouseUp (laya.core.js:11412)   ...

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

827. 3d项目base64 截图成绩有偏差 [ 54%]

...d有偏差,层级感觉反过来刷了一遍。    this.an_img.on(Laya.Event.MOUSE_DOWN, this, function (): void {                 console.log("点击");                 var htmlCanvas:Laya.HTMLCanvas = Laya.stage.drawToCanvas(1334, 750, 0, 0);//把精灵绘制到...

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

828. laya.display.Text [ 54%]

...| All Classes | Index | Frames No Frames TextProperties | Methods | Events | Constants Packagelaya.displayClasspublic class TextInheritanceText Sprite Node EventDispatcher ObjectSubclasses Input Text 类用于创建显示对象以显示文本。 注意:如果运行时系统找不到设定...

来源: Laya2.0_api 发布时间: 20190513

829. laya.media.Sound [ 54%]

...rties | Methods Packagelaya.mediaClasspublic class SoundInheritanceSound EventDispatcher Object Sound 类是用来播放控制声音的类。 引擎默认有两套声音方案,优先使用WebAudio播放声音,如果WebAudio不可用,则用H5Audio播放,H5Audio在部分机器上有兼容问...

来源: Laya2.0_api 发布时间: 20190513

830. 有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 [ 54%]

... onLoading, null, false), null, 1, true, sGameMark, false); Laya.loader.on(Event.ERROR, this, onError); 预加载资源添加了完成 进度 和失败监听  在手机上有时加载进度会卡在某个数值不动 不会触发加载失败 也不触发加载完成  请问有没有什么方法可...

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