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

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

221. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 73%]

...Game.GetServerTime() : startTime_ ); this.endTime = startTime + time; Laya.timer.loop(1,this,ef); isCd = true; } public function stop():void { this.set360(-1); Laya.timer.clear(this,ef); isCd = false; } } }   2017-11-24 1 2 分享 微博 QZONE 微信 wudi199553 赞同来自: 计时器属于简单...

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

222. UI-ProgressBar [ 72%]

...dler = new Handler(this, onChange); Laya.stage.addChild(progressBar); Laya.timer.loop(100, this, changeValue); } function changeValue() { if (progressBar.value >= 1) progressBar.value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"...

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

223. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 72%]

...s id is3D layer meshFilter meshRenderer minX minZ numChildren parent scene timer transform url width Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnc...

来源: Laya3.0_api 发布时间: 20231102

224. Sprite-容器 [ 72%]

...s ); } this.apesCon.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.timer.frameLoop(1, this, this.animate); } animate() { this.apesCon.rotation += 1; } } new Sprite_Container();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = La...

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

225. 飞机大战地图滚动报错,麻烦看下? [ 72%]

..."res/bg1.png");     bg2.pos(650, 0);     box.addChild(bg2);     Laya.timer.frameLoop(1, this, bg_loop()); } function bg_loop() {     box.x -= 1;     if (bg1.x + box.x <= 0) {         bg1.y = 650     }     if (bg2.x + box.x <= 0) {         bg2.x = 650     } } bg_rolling(...

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

226. Sprite-容器 [ 72%]

...ild(ape); } apesCtn.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.timer.frameLoop(1, this, animate); } function animate(e) { apesCtn.rotation += 1; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import W...

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

227. Laya 2.0.1 mac 版本 搜索方法效果失效 [ 72%]

...。这个时候调用自带库里面的代码提示也消失。比如Laya.timer.once (timer 和 once 都不会提示出来) Yangcy • 2019-04-19 14:11 你好 现在已经升级到了2.0.2版本了 还是没有修复哦。。。。??

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

228. 麻烦问一下,laya有没有类似于unity的协成操作? [ 72%]

...相关的链接 提交 1 个回复 Laya_Xq 赞同来自: 你可以看一下timer,laya里面的Laya.timer可以实现和unity协成类似的效果 2018-05-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 yzbgyc 相关问题 看了其...

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

229. 如何获得特效的宽高 [ 72%]

...7-06-28 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: 你用Laya.timer.once加个延迟看下呢? 2017-06-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z298959 相关问题 缓动Tween能用在3D物体或者特效上面...

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

230. 性能测试-虫子(慎入) [ 72%]

... maggotTexture = Laya.loader.getRes(texturePath); this.initMaggots(); Laya.timer.frameLoop(1, this, this.animate); } initMaggots() { let maggotContainer; for (let i = 0; i wb.x + wb.width) x -= wb.width; if (y wb.y + wb.height) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } } new PerformanceTest...

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