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

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

41. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 64%]

...);             image.skin = "res/atlas/clanwar_bg.jpg?" + Math.random();             Laya.stage.addChild(image);              var index:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(index/...

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

42. LayaAir开发笔记(1)五十音图连连看 [ 63%]

...假名和片假名,然后用g_list_C作为索引,每次开始时用GetRandomNum把索引打乱,然后随便取12的平假名和12个片假名进行初始排名,开始执行timer计时器。注意,一定要用个gameStatue变量来控制游戏状态,否则不点开始就可以点卡片了...

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

43. 随机创建对象怎么做啊 [ 63%]

...内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 用Math.random() 2017-01-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zhangliang123 相关问题 两个对象new了一个相同的对象,调用第一个的一个方...

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

44. TS代码怎样随机显示图片? [ 63%]

...: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 用Math.random()随机数 随机显示你想显示的图片 2018-01-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ab351875853 相关问题 请问LayaAir中如何使图...

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

45. 混合模式-Lighter [ 62%]

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

46. 混合模式-Lighter [ 62%]

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

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

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

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

48. 5以内的随机数怎么生成 [ 61%]

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

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

49. 阻止点击穿透问题 [ 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

50. 怎么生成唯一的随机数啊 [ 60%]

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

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