大约有 139 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0038 秒)
...tPosEnemy; // 调用这个方法会触发 onTriggerEnter BUG,看下面Laya.timer.loop里的注释 let pTriggerBug = function () { let vRE = pEnemyObj.transform.rotationEuler; // 这个值估计改成多少都会触发这个BUG vRE.y = -166; pEnemyObj.transform.rotationEuler = vRE; } setTimeout(() =&...
来源: Laya_社区 发布时间: 20200720
...d() { maggotTexture = Laya.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } function initMaggots() { var maggotContainer; for (var i = 0; i wb.x + wb.width) x -= wb.width; if (y wb.y + wb.height) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } })();module laya ...
来源: Laya_示例 发布时间: 20251209
...; Laya.init(0, 0,true); Laya.stage.bgColor = "#000000"; ChangeSize(); Laya.timer.once(1000,this,function start():void{ Laya.stage.on(Event.RESIZE,this,onResize); }); } protected function HengPing(): void { trace("设置横屏" ); var layaCanvas:Object = Browser.getElementById("layaCanvas"); layaC...
来源: Laya_社区 发布时间: 20190520
... maggotTexture = Laya.loader.getRes(texturePath); this.initMaggots(); Laya.timer.frameLoop(1, this, this.animate); } initMaggots() { let maggotContainer; for (let i = 0; i wb.x + wb.width) x -= wb.width; if (y wb.y + wb.height) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } } new PerformanceTest...
来源: Laya2.0_示例 发布时间: 20251209
...useEvent.MOUSE_UP,onUp); function onDown(e:MouseEvent):void { timer = new Timer(delay,1); //超过1秒就算是长按 timer.addEventListener(TimerEvent.TIMER,onTimer); timer.start(); } 也可以在点击事件的回调函数里写一个计时器进行判断 2018-04-08 ...
来源: Laya_社区 发布时间: 20180408
...页面派发 B页面侦听) iphone自带浏览器页面怎么锁定 Laya.timer.loop()如何停止 用了第三方socket类 项目在IDE上可以连接正常运行,为什么打包APK之后在手机上就连接不上socket Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。...
来源: Laya_社区 发布时间: 20171019
发布到微信小游戏后Timer的getHandler报错了 请问一下,我的项目,在html5环境下是正常运行的。 但是发布到微信小游戏后,在微信开发者工具中运行就会有报错: gameThirdScriptError Cannot read property '$_TID' of undefined TypeError: Cannot read pro...
来源: Laya_社区 发布时间: 20180520
...试了通过创建cannon的物理场景和刚体几何体对象,由laya.timer驱动cannon解算物理变化,然后不断把cannon世界里的物体变化实时赋值给laya场景里的物体,但是感觉效率有点低啊…… 比如: package { import laya.d3.core.BaseCamera; import laya...
来源: Laya_社区 发布时间: 20170331
...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
...ea 不能显示在正确位置; 暂时的解决办法是addChild之后用timer延时调用fitDOMElementInArea 但是延时如果设置短了还是会有一定几率位置不正确,如果长了会导致一段时间元素位置显示空白。 2017-08-23 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20170823