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

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

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

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

72. lose skin null [ 68%]

...yer value can be null. 射线检测报错,outHitInfo.sprite3D=null; Laya.timer.loop() 报错 Cannot read property 'loop' of null Laya.stage报null 问题状态 最新活动: 2018-01-27 15:19 浏览: 2146 关注: 2 人 helegame • 2018-01-29 20:26 好 谢谢 ssss111 • 2018-03-28 20:47 没显示...

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

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

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

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

74. timer无法执行 [ 68%]

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

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

75. 怎么判断time是否存在,再清除 [ 68%]

...定时器之前做判断,如果存在,就clear, if(xxxxx){ Laya.timer.clear(this, this.showUserHandCard);  } Laya.timer.loop(150, this, this.showUserHandCard, null, false);    这个xxx怎么判断 2018-03-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...

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

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

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

77. Laya.SoundManager.playSound()问题,任务不是当前标签停止播放,当任务回到当前标签页,不能恢复播放 [ 68%]

...播放完后的回调时间 ui list 里面的元素不能点击两次 Laya.timer.loop()如何停止 循环依赖不能运行 Circular dependency: Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? 谷歌浏览器播放mp3出现The AudioContext was not allowed to st...

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

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

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

79. 什么情况下Tween缓动会停止?除了暂停函数外 [ 67%]

....addChild(kaishi); kaishi.playAnim(); this.anim_array.push(kaishi);  Laya.timer.once(1700, this, function () { kaishi.onDestroy(); kaishi.destroy(true);   两个脚本是相互独立的。 2020-01-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

80. 骨骼动画报错!!! [ 67%]

...leton.__proto._createGraphics     at Skeleton.__proto._update     at TimerHandler.__proto.run     at Timer.__proto._update     at Stage.__proto.render     at Stage.__proto._loop     at loop   引擎版本1.6.2 我们日志统计到,大量玩家报这个错误 我找到是因为A...

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