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

大约有 498 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0078 秒)

231. 加载时间轴动画报错 [ 73%]

...画报错 代码如下: this.ani = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Cannot read property '...

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

232. 怎么知道animation当前播放到第几帧 [ 73%]

...样获取鼠标/触摸当前坐标 IDE中自动打包图集后最后在res/atlas中只有json和png没有atlas,不知道原因是什么 为什么在编辑器下正常的animation,运行时有原件会错乱? 问题状态 最新活动: 2017-09-25 17:40 浏览: 769 关注: 2 人

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

233. 关于stage的size问题 [ 73%]

...ALE_NOSCALE; // Laya.stage.size(6000, 6000); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代...

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

234. 图集打包多个小动画,能像createFrames一样命名小动画吗 [ 73%]

...-27 15:47 我是用ide打包的动画,打包出来只有json , png , atlas三个文件 abc0201213 • 2017-07-28 10:29 @cuixueying:我是用ide打包的动画,打包出来只有json , png , atlas三个文件 cuixueying • 2017-07-28 10:49 可以打图集,你预加载图集,从图集...

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

235. LayaAir IDE 1.7.16beta 图集打包就产生一个.res文件 [ 73%]

...tions/LayaAirIDE_beta.app/Contents/Resources/app/out/vs/layaEditor/libs/TP/atlas-generator" -S 2048 -s 512 "/Users/passionzhang/Develop/wegame/wordwar/laya/assets/comp" -o "/Users/passionzhang/Develop/wegame/wordwar/laya/assets/atlas" --dataFormat json --scale 1 --force newPro.js:1251 nullQCommandLi...

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

236. IDE动画 添加过程出现图片资源丢失 [ 72%]

... created 图片数据应该没有问题   代码:  var ress=[{url:"res/atlas/games/cxmj/shaizi.json",type:Laya.Loader.ATLAS}];                      Laya.loader.load(ress);                     var Animation = Laya.Animation;                     var dice...

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

237. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 72%]

...ion beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //...

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

238. 请问怎么监听在IDE中创建的UI中资源的加载进度呢 [ 72%]

...然后通过loader去加载界面的配置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听的当前加载进度不太对,我总共有6张未打包图...

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

239. 小游戏 Animation动画不显示 [ 72%]

...复 150*****483 赞同来自: var ani:Animation = new Animation(); ani.loadAtlas("./game/fp.atlas"); ani.play(); ani.x = 100; ani.y = 100; addChild(ani); 就这样一段代码 2018-11-29 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 150...

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

240. 怎么在api中找到 Laya.loader.load [ 72%]

怎么在api中找到 Laya.loader.load Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,this.onloaded),null,Laya.Loader.ATLAS); 这一句,我想找一下Laya.loader.load的使用说明和使用例子,但是不知道怎么找。在api里我开了Laya。 http://layaair.ldc.layabox.c...

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