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

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

51. 混合模式-Lighter [ 61%]

...).slice(-strLen); } private evalBgColor(): void { var color: number = Math.random() * 0xFFFFFF; var channels: Array = this.getColorChannals(color); this.bgColorTweener.to(this.bgColorChannels, { r: channels[0], g: channels[1], b: channels[2] }, this.gradientInterval, null, Handler.create(this, this....

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

52. 混合模式-Lighter [ 61%]

...).slice(-strLen); } private evalBgColor(): void { var color: number = Math.random() * 0xFFFFFF; var channels: Array = this.getColorChannals(color); this.bgColorTweener.to(this.bgColorChannels, { r: channels[0], g: channels[1], b: channels[2] }, this.gradientInterval, null, Handler.create(this, this....

来源: Laya2.0_示例 发布时间: 20251130

53. 如何实现随机颜色啊 [ 61%]

如何实现随机颜色啊 as3中可以用math.random()*0xffffff来做随机颜色 layabox里面有办法弄吗 2017-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你自己拼接...

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

54. 5以内的随机数怎么生成 [ 60%]

...邀请: 与内容相关的链接 提交 1 个回复 Sky 赞同来自: Math.random()*5 这问题百度就出来了,比帖子快 2018-07-18 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 程序未响应 相关问题 laya2的Scene默认...

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

55. 阻止点击穿透问题 [ 60%]

...n(); if(!Game.runing) { Game.runing = true; Game.stepNum = Math.floor(Math.random() * 6) + 1; console.log(Game.stepNum) Animate.role(Game.stepNum); } },[this.items.shaizi]);  弹层的代码: this.prizeAlertLayer = new Sprite(); this.prizeAlertLayer.zOrder = 90; this.prizeAlertLayer.size(W, H); ...

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

56. 怎么生成唯一的随机数啊 [ 59%]

...相关的链接 提交 1 个回复 cuixueying 赞同来自: 直接用Math.random生成随机数即可! 2017-03-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 h690759643 相关问题 laya2的Scene默认是文件模式,不会生成...

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

57. drawTexture 画出来的数据会有以前的数据 [ 59%]

...ent.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.graphics.clear(); iconSpr.graphics.clear(); if(htmlCanvas) htmlCan...

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

58. 请问我怎么在js中调用这个方法 [ 59%]

...ion (Zszen) { var Test = (function () { function Test() { this.rand = Math.random(); } Test.output = function (){ console.log(this.rand); } return Test; }()); Zszen.Test = Test; })(Zszen || (Zszen = {}));我使用 var a = new Zszen.Test(); a.output(); //这句我调用说找不到, 应该怎么写...

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

59. 强转报错:无法解析int强制转换 [ 59%]

强转报错:无法解析int强制转换 var num:int=int(Math.random()*6); trace(num); 此时就会报错,无法解析int强制转换 2016-05-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞...

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

60. Tween动画中的Sprite点击事件失效 [ 59%]

...a.Tween.to(self.loserPrize, {      y: Laya.Browser.clientHeight }, Math.random() * 1500); self.gameZone.addChild(self.loserPrize);   大概如上 随手写出来的,就是一个礼物从上往下掉的时候如果点击到了就能领取。。但是发现动画时候的Sprite点击不了。。...

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