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

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

61. [0]Clip播放丢帧以及停止动画过前的问题 [ 70%]

... 要回复问题请先登录 发起人 1635326721用户 相关问题 Laya.timer.loop()如何停止 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. Animator2D该如何判断动画是否已经播放完成? 骨骼动画播放完后的回调时间 Animator 如何获取当前...

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

62. 百度小游戏 内存不断增大的情况 [ 70%]

...],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this.isOpen=true; var testView=new TestView(); Laya.stage.addChild(testView); Laya.timer.once(200,this,this.removeUi,[testView]); }...

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

63. 自定义对话框设置zOrder后,关闭时报错 [ 70%]

...zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", CountdownUI); return countdownBar; }()); CountdownBar.prototype.countdown = function () { this.count--; if (this.count > 0) { this.countLab...

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

64. 关于环形进度条,进度不能重置问题 [ 69%]

....circle; function IndexView(){ IndexView.super(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.box.cacheAs = "bitmap"; this.box.pos(0,0); this.say.addChild(this.box); this.draw = new Sprite(); this.box.addChild(this.draw); th...

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

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

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

66. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 69%]

...,好像整个页面奔溃了,卡滞了 代码类似下面这样 Laya.timer.loop(200, this, showframe); function showframe() {     var url = getimage();     this.sp_video.loadImage(url);     }   2017-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

67. 微信小游戏渲染开放域卡顿处理 [ 68%]

...放域界面方法,即定时器的回调方法(重点): function onTimer() {     // bitmap为纹理的bitmap属性,自行赋值     var func = bitmap._source && bitmap.reloadCanvasData;     func && func.call(bitmap); } 3.关闭渲染: 个人认为5秒后停止定时...

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

68. 使用方向键 控制精灵在格子中移动 [ 68%]

...his.onkeyup); Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown); Laya.timer.frameLoop(1,this,this.loop);事件响应 onkeyup(e){ for(let i:number = 0;i<this.keyList.length;i++){ if(this.keyList[i]==e.keyCode){ this.keyList.splice(i,1); break; } } } onkeydown(e){ if(this.keyList.indexOf(e.key...

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

69. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 68%]

...Menu.value = 0.0; Laya.stage.addChild(this.progressUI.displayObject); Laya.timer.loop(100, this, this.updataPosition); this.loadMainDatas(); } public updataPosition() { this.progressUI.setPosition(Laya.stage.width / 2, Laya.stage.height / 2); } public loadMainDatas() { Laya.loader.load([ { url: "res...

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

70. webgl遮罩的BUG [ 67%]

...    this.mMask.graphics.clear();                 Laya.timer.loop(10,this,this.showMask);         public showMask():void         {             this.mMask.graphics.clear();            this.mMask.graphics.drawPie(75, 75, 150,-90,-90 + this.ang, "#ff...

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