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

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

161. 小游戏环境下 声音的缓存机制导致更换声音文件失败 [ 88%]

...niSound._audioCache[this.readyUrl]) {                 this.event(/*laya.events.Event.COMPLETE*/"complete");                 return;             }             console.log(url);             if (MiniAdpter.autoCacheFile && Mini...

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

162. 超过最大调用堆栈大小 [ 88%]

...:8383");         output = socket.output;         socket.on(Event.OPEN, this, this.onSocketOpen);         socket.on(Event.CLOSE, this, this.onSocketClose);         socket.on(Event.MESSAGE, this, this.onMessageReveived);         socket.on(Event.ERROR, this, this...

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

163. 引擎socket类_onMessage bug [ 88%]

...       if (this.disableInput && data) {             this.event(Event.MESSAGE, data);             return;         }         if (this._input.length > 0 && this._input.bytesAvailable < 1) {             this._input.clear();             this._addIn...

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

164. socket通讯返回数据 [ 88%]

...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); // this.s...

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

165. 为什么hitTestPoint始终是false? [ 88%]

.../bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTestPoint(e.stageX, e.stageY)); } } 很简单的代码,不知道什么hitTestPoint始终得到的是false.我打印出s的宽...

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

166. MOUSE_UP事件 [ 88%]

MOUSE_UP事件 当我使用 for(var i=0;i<3;i++){ this["_role_"+i].on(Event.MOUSE_DOWN,this,this.clickDown) ; this["_role_"+i].on(Event.MOUSE_MOVE,this,this.clickMove); // this["_role_"+i].on(Event.MOUSE_UP,this,this,clickUp); }这样的方式添加监听时,MOUSE_UP不支持对象采用拼接...

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

167. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 87%]

...创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { console.log("parse error"); } parseComplete() { //创建第...

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

168. 输入设备-贪吃蛇(重力感应) [ 87%]

...化蛇 initSnake(); // 监视加速器状态 Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, animate); // 食物生产 Laya.timer.loop(3000, this, produceFood); // 游戏开始时有一个食物 produceFood(); })() function initSnak...

来源: Laya_示例 发布时间: 20251130

169. 示例 骨骼动画换装 加不上点击事件 [ 87%]

.../mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, cha...

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

170. tweenline label事件诡异 [ 87%]

...的都会同时播放 这里不太了解 3.官网上绑定的事件 是写Event.LABEL 实际上这里输出来是空的 我后面改成了 "label"才可以触发事件 2017-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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