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

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

21. Sprite.loadImage();问题 [ 89%]

Sprite.loadImage();问题 Sprite.loadImage();后  通过 Sprite.clear()方法清空不了绘制命令,  还是显示loadImage时的图片,还有什么方法可以清空加载的资源? 2017-10-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

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

...除 就是我需要再添加定时器之前做判断,如果存在,就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

23. 关于Sprite回收 [ 87%]

...      Pool.recover("item", item);                 item.graphics.clear();             }    item的父容器是通过回收池获取的,父容器带有原来的item,现在希望删掉原来的item,添加新的item,使用上面的代码去达不到效果,结果是原有的i...

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

24. Laya.timer.loop()如何停止 [ 87%]

...umi_  Laya.timer.loop(1000, this, animateTimeBased);//添加 Laya.timer.clear(this,animateTimeBased);          //删除 2017-06-05 3 3 分享 微博 QZONE 微信 Y_Yao 赞同来自: 清除定时器clear(); 2017-06-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

25. tween [ 87%]

...续执行 这是暂停函数: __proto.pause=function(){ Laya.scaleTimer.clear(this,this._beginLoop); Laya.scaleTimer.clear(this,this._doEase); 以下是Tween类里面的 create 函数的代码段 BUG就出在 Laya.scaleTimer.once(delay,this,this.firstStart,[target,props,isTo]); if (runNow){ if (de...

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

26. 【简单跑酷--JS版】---Lv.3 添加地板 [ 86%]

...es("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); //将当前的坐标向上移动32 方便后面处理人物的位置 this.bg.y = -32; this.addChild(this.bg); } this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); //创建一个帧循环处理函数 Laya.ti...

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

27. 请问父节点的Tween.clearAll(this)是否会影响到子节点上的Tween? [ 86%]

请问父节点的Tween.clearAll(this)是否会影响到子节点上的Tween? 项目中有Ball,Ball的碰撞会产生一些动画效果来表现加分,   比如用一个金币的Image放在Ball节点下,然后采用Tween.to变化Image实现加分的效果;   然而有时候会出现子节点的Tw...

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

28. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 85%]

...click redbox"); }); redBox.on("mouseover",this,function(){ redBox.graphics.clear(); redBox.graphics.drawRect(0,0,100,100,'#00ff00'); }); redBox.on("mouseout",this,function(){ redBox.graphics.clear(); redBox.graphics.drawRect(0,0,100,100,'#ff0000'); }); var guideContainer:Sprite = new Sprite(); guide...

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

29. laya.utils.Tween [ 84%]

...生变化时,回调变化的值TweenPublic Methods  MethodDefined By  clear():void 停止并清理当前缓动。 Tween  clear(tween:Tween):void[static] 清理某个缓动。 Tween  clearAll(target:Object):void[static] 清理指定目标对象上的所有缓动。 Tween  complete():void ...

来源: laya_api 发布时间: 20170929

30. Laya.timer.loop 的 Laya.timer.clear 问题 [ 84%]

Laya.timer.loop 的 Laya.timer.clear 问题 Laya.timer.loop(1000, this, ()=>{ 在这里怎么停 });   这个问题一直没人回答。。我贴出来。。让有经验的人回答一下。。。 2018-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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