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

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

351. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 46%]

...unction () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBirdSing.index = 0; // 当前播放索引 this.aniBirdSing.zOrder = 1; this.aniBirdSing.play(); this.aniBird...

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

352. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 46%]

...下: ```JavaScript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...

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

353. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 46%]

...r.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); }   2、你打包图集的时候,.json文件的prefix键是没有值的,这个是因为你直接针对散图所在文件夹进...

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

354. Laya.Animation.createFrames,用图集url加载的播放顺序不对,用图集Array加载的播放顺序对,咋回事? [ 46%]

...png"], "fish_live_16"); //播放不正常 Laya.Animation.createFrames("res/atlas/fish/fish_16.json", "fish_live_16"); 2017-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: ...

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

355. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 46%]

...下: ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...

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

356. Laya.HTMLDivElement解析img标签报错 [ 45%]

...new Laya.HTMLDivElement();         div.innerHTML="<img src='res/atlas/test.png'/>"         Laya.stage.addChild(div);     } TypeError: Illegal constructor laya.core.js:11687     at Function.getInstance (file:///D:/work/test2/bin/libs/laya.core.js:11687:24)     at Functio...

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

357. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 45%]

...下: ```javascript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = ...

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

358. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...毕,此方法只执行一次 */ onAwake(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y =...

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

359. 微信小游戏利用开放域好友关系链做排行榜 [ 45%]

...      private beginLoad():void{         Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.onLoaded));     }      private onLoaded(): void {         console.log("onLoaded ......");         GameBootstrap.wxPostMessage({             cmd...

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

360. 为什么会出现报错 ani not found:ufo1_down [ 44%]

... Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 th...

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