大约有 87 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0028 秒)
Laya_社区(56) Laya2.0_文档(8) Laya_示例(7) Laya2.0_示例(7) Laya3.0_文档(6) laya_api(1) Laya3.0_api(1) Laya2.0_api(1)
...).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
...).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
如何实现随机颜色啊 as3中可以用math.random()*0xffffff来做随机颜色 layabox里面有办法弄吗 2017-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你自己拼接...
来源: Laya_社区 发布时间: 20170314
...邀请: 与内容相关的链接 提交 1 个回复 Sky 赞同来自: Math.random()*5 这问题百度就出来了,比帖子快 2018-07-18 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 程序未响应 相关问题 laya2的Scene默认...
来源: Laya_社区 发布时间: 20180718
...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
...相关的链接 提交 1 个回复 cuixueying 赞同来自: 直接用Math.random生成随机数即可! 2017-03-20 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 h690759643 相关问题 laya2的Scene默认是文件模式,不会生成...
来源: Laya_社区 发布时间: 20170320
...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
...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
强转报错:无法解析int强制转换 var num:int=int(Math.random()*6); trace(num); 此时就会报错,无法解析int强制转换 2016-05-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞...
来源: Laya_社区 发布时间: 20160501
...a.Tween.to(self.loserPrize, { y: Laya.Browser.clientHeight }, Math.random() * 1500); self.gameZone.addChild(self.loserPrize); 大概如上 随手写出来的,就是一个礼物从上往下掉的时候如果点击到了就能领取。。但是发现动画时候的Sprite点击不了。。...
来源: Laya_社区 发布时间: 20180222