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

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

161. 计时器-间隔循环 [ 72%]

...0; t.color = "white"; t.bold = true; t.pivot(t.width / 2, t.height / 2); t.pos(x, y); Laya.stage.addChild(t); return t; } function animateTimeBased() { rotateTimeBasedText.rotation += 1; } function animateFrameRateBased() { rotateFrameRateBasedText.rotation += 1; } })();module laya { import Stage = ...

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

162. 请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 [ 72%]

...aphic  drawTextures () method  public function drawTextures(tex:Texture, pos:Array):void批量绘制同样纹理。 Parameters tex:Texture — 纹理。   pos:Array — 绘制次数和坐标。   请教第二个参数pos的具体格式   是带着s的drawTextures,批量绘制同样纹理。...

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

163. AS版的movieclip加载swf报错,js版本的可以加载。 [ 71%]

...()方法和play()方法都报错。 报错:TypeError: _data is null_data.pos=this._Pos; 2016-06-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 您好,gotoStop()方法和p...

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

164. 计时器-间隔循环 [ 71%]

...0; t.color = "white"; t.bold = true; t.pivot(t.width / 2, t.height / 2); t.pos(x, y); Laya.stage.addChild(t); return t; } animateTimeBased() { this.rotateTimeBasedText.rotation += 1; } animateFrameRateBased() { this.rotateFrameRateBasedText.rotation += 1; } } new Timer_Interval();module laya { impor...

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

165. 如何往TiledMap格子内追加精灵 [ 71%]

...eSprite(no){ var flower = new Sprite(); flower.loadImage(texture1); flower.pos((0 + no) * 99.5, 73); flower.mouseEnabled=true; flower.alpha=1; flower.on(Event.CLICK,this,function() { flower.scaleX=1.1; flower.scaleY=1.1; Laya.timer.once(100, this,function() { flower.scaleX=1; flower.scaleY=1; alert(...

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

166. 获取位置信息 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...最大时间(毫秒)限制。默认值是Infinity,意味着getCurrentPosition()直到位置可用时才会返回。 maximumAge —— 代表可返回的可用缓存位置的最大时限。如果设置为0,意味着设备不使用缓存位置,始终尝试获取实时位置。如果设置为...

来源: Laya3.0_文档 发布时间: 20251010

167. graphics 绘制线条粗细不一样 [ 71%]

... Sprite();             this.addChild(sp);             sp.pos(200, 200);             sp.graphics.drawRect(0, 0, 200, 200, "#ff0000", "#000000", 2);   附件 : --> 2018-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

168. 骨骼动画-适配版Spine [ 71%]

...templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play); this.play(); } onError() { console.log("parse error"); } play() { console.log("1111111111"); i...

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

169. 屏幕适配的缩放模式详解(ActionScript-2D基础篇(AS3)-屏幕适配) [ 71%]

...ALE_EXACTFIT+") ";         txt.bold = true;         txt.pos(10, 350);         txt.fontSize = 60;         txt.color   = "#fff000";         Laya.stage.addChild(txt);         }            } } ``` ### 二、fixedheight模式 ​ fixedhe...

来源: Laya2.0_文档 发布时间: 20200307

170. Sprite-切换纹理 [ 71%]

...d() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } function switchTexture() { var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹...

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