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

大约有 158 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0040 秒)

41. 关于定时器嵌套问题 [ 76%]

关于定时器嵌套问题 假设有一个定时器laya.timer.loop(1000,this,update),在update方法中包含另一个定时器laya.timer.loop(1000,this,show),这种情况两者会互相产生干扰吗?还是各算各的时间? 2018-04-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

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

...ance.on(Laya.Event.CHANGE, this, monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, animate); // 食物生产 Laya.timer.loop(3000, this, produceFood); // 游戏开始时有一个食物 produceFood(); })() function initSnake() { for (var i = 0; i 0) { var prevSeg = segments[segments....

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

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

...ance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, this.animate); // 食物生产 Laya.timer.loop(3000, this, this.produceFood); // 游戏开始时有一个食物 this.produceFood(); } initSnake() { const Point = Laya.Point; for (let i = 0; i 0) { let...

来源: Laya2.0_示例 发布时间: 20240929

44. laya.spine.js问题以及spine.core.js问题 [ 75%]

...ent.ERROR, "load failed:" + this.assetManager.getErrors()); return; } Laya.timer.frameOnce(1, this, this.loop); }         ==========================================================================              spine-core-3.7.js问题: 代理里有语法错误,state  !== status   }, ...

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

45. 关于微信小游戏渲染子域图的问题 [ 75%]

...;anonymous> (http://127.0.0.1:10656/game/js/bundle.js:1196:16)     at TimerHandler.__proto.run (http://127.0.0.1:10656/game/js/bundle.js:8352:45)     at Timer.__proto._update (http://127.0.0.1:10656/game/js/bundle.js:8101:15)     at Stage.__proto.render (http://127.0.0.1:10656/game/js/bundl...

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

46. 针对2.0.0 beta5 setLoadingPage 做增强 [ 75%]

...=== null) otherHandler = this._promiseHandler if (!this._loadScene) { Laya.timer.loop(10, this, this.openScene, [url, otherHandler, closeOther, param, complete, progress]) return } Laya.timer.clear(this, this.openScene) Laya.Scene.showLoadingPage(null, 0) // 同步执行 Promise.all([this._load(url,...

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

47. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 75%]

...height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400);...

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

48. timer无法执行 [ 74%]

timer无法执行 初学菜鸟,自己写了一个刚体碰撞的demo,但是timer下的方法无法执行,求大佬解答,有关代码如下(我是直接在自动生成的GameUI类里头写的):   shootBall方法用来生成球体,直接调用的没有问题的,可以正常执行...

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

49. 定时器会互相影响吗 [ 74%]

定时器会互相影响吗 Laya.timer.loop(10, this, this._loopRefresh, [], false);一个定时器用来倒计时 一个定时器有个延时执行Laya.timer.once(100, this, this._checkIsSame, [1], false); 这不是两个定时器吗 为什么第二个延时执行的时候第一个会停住啊 第...

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

50. 运用多个缓动动画或者大的缓动,在ios上运行造成黑屏 [ 74%]

...17-10-16 0 1 分享 微博 QZONE 微信 qwer535305054 赞同来自:  Laya.timer.loop(1000, this, this.setTime); private setTime(){             this.downTime--;             Tween.to(img1, { x: randomx, y: randomy }, 250);             Tween.to(img2, { x: randomx, y: randomy }, 250);...

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