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

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

341. 厘米秀(QQ玩一玩)的引擎里面无法使用 setTimeout/setInterval [ 66%]

...8-20 0 0 分享 微博 QZONE 微信 。 赞同来自: 用laya自己的Laya.timer类就行了 2018-08-20 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 TsubasaYeung 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用了...

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

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

...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

343. 灯光-方向光 [ 66%]

...play(null, 1.0, 40, 70); }); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector3.transformQuat(_direction, _quaternion, _direction); directionLig...

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

344. alertGlobalError不起作用,并且任何异常都会导致整个游戏卡死 [ 66%]

...   问题2 并且不管哪里出现异常(包括按钮的点击函数、timer的loop回调、任何事件的回调、在ios上给label设置了一个无效的color等),都会导致整个游戏直接卡死 画面停止渲染  全体timer loop都停止  所有事件也不会再触发  等同...

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

345. laya.ui.Button [ 66%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node  toggle : Boolean 指定按钮按下时是否是切换按钮的显示状态。 Button toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handle...

来源: laya_api 发布时间: 20170929

346. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 66%]

...光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ Laya.timer.loop()如何停止 Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! 求教: soundManager如何停止正在播放的背景音乐 用Laya.stage.addChild(new testUI());后,原来...

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

347. laya里的所有单例都没有初始值 [ 66%]

...aya["WebGL"]);             trace("Laya.stage",Laya.stage,"Laya.timer",Laya.timer,"Laya.loader",Laya.loader)             Laya.stage.scaleMode = GameConfig.scaleMode;                          Laya.stage.screenMode = GameConfig.screenMode;        ...

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

348. 我想移动容器来实现前进的动画,但是移动不了。这里的y有问题 但是又不知道改成什么 [ 66%]

....scaleMode = "showall"; Laya.stage.bgColor = "#232628"; showApe(); // Laya.timer.frameLoop(1,this,myLoop) })(); function showApe() { // 方法1:使用loadImage加载背景1 var bg1 = new Sprite(); bg1.loadImage("war/bc.png"); Laya.stage.addChild(bg1);   //加载背景2 var bg2 = new Sprite(); bg2...

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

349. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 66%]

...x=speedx; this.bgimg.speedy=speedy; console.log("funmovebg"+movetox); Laya.timer.frameLoop(speed, this, funbg);     2017-10-25 0 2 分享 微博 QZONE 微信 yinglei999 赞同来自:     var Loader = Laya.Loader;     var loaderHandler = Laya.Handler; var scronw=640; var scronh=960;    ...

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

350. Socket连接不上(已解决) [ 65%]

...txt.text = "Start conect";                          Laya.timer.loop(1000, this, checkSocket);         }                  private function checkSocket(e:* = null):void{             txt.text = socket.connected ? "Now connect" : "Not conect";         }...

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