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

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

2251. sk文件加载 [ 50%]

...          sk.destroy(true)                 sk = null;                 Laya.loader.clearRes("res/sk/cow.sk");                 Laya.loader.clearRes("res/sk/cow.png");                 Laya.timer.once(1000,this,function(){     ...

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

2252. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 50%]

...", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { trace('fall'); } else if(tEventData.name=="'jump'") { trace('jump'); } else if(tEventData.name=="'stand'") { trace('stand'); } else if(tEventData.name=="'walk...

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

2253. 关于LayaBox启动的问题。 [ 50%]

...ield asyncs.downloadSync[/b](location.fullpath + '/font/simhei.ttf', true, null)); if (!data) { data = ([b]yield asyncs.downloadSync[/b]('http://runtime.layabox.com/font/simhei.ttf', true, null)); } if (!data) { alert('>>>download ttf error '); return; } fs_writeFileSync(sTempFontPath, data...

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

2254. 请问Texture2D如何用base64字符串构建对象 [ 50%]

...ageLoaded); let texture: Texture2D = new Texture2D(); texture.onAsynLoaded(null, image, ); //接下来就可以把贴图对象赋值给材质了 }; image.addEventListener("load", onImageLoaded); image.src = base64; 2018-05-19 1 1 分享 微博 QZONE 微信 一点一滴 赞同来自: 用ES6语法要...

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

2255. 感觉实例之间是关联的,求指教。(已解决) [ 50%]

...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 播放声音出错,求指教 HttpRequest感觉没有发成功 微信小游戏上线了,但凑不够需要的用户量咋办,有人...

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

2256. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 50%]

.../         public function loadImage(url:String, complete:Handler = null):Sprite   2.0接口改了,还有你的sprite 没有指定类型。 2018-10-10 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ohkei as3、as2、h5 相关...

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

2257. 如何设置项目发布目录, fd+laya,原来发布的是bin-debug 重装系统配置了环境后成了bin目录了 [ 50%]

...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 问题状态 最新活动: 2017-09-22 14:34 浏览: 941 关注: 2 人

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

2258. 启用版本管理后,加载的资源很奇怪的在正确的路径后面又加了一次路径 [ 50%]

...loader.load(this._proto_files,Laya.Handler.create(this,this.OnProtoLoaded),null, Laya.Loader.TEXT);     打包的时候在release/web下面有了protos/loginxxxxxxxx.proto这样的文件 然后运行的时候,报了这样的错 GET http://xxxxxxxx.com/newgame/pr ... proto 404 (Not Found)   其...

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

2259. 在 tiledmap 插入一个精灵在上面 [ 50%]

...ader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); }   onLoaded(){   console.info("onLoaded");   this.tiledMap = new Laya.TiledMap();   this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height),   Laya.H...

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

2260. 模仿教程里的打地鼠写的代码,运行报错 [ 50%]

...Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var background = (function (_super) { function background() { ...

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