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

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

41. Laya.Handler.create 回调 [ 84%]

...reate 回调 Laya.Tween.to(right, {x: 0} , 700 ,null , Laya.Handler.create(this,this.onStartOver1, [anim])); onStartOver1(bads: Array<any>): void { alert("1" + bads.length) var animsf :Laya.Animation = bads[0] as Laya.Animation; animsf.play(); } 这样用会报错 2017-03-09 添加评论 免...

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

42. 加载时间轴动画报错 [ 84%]

加载时间轴动画报错 代码如下: 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:Can...

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

43. 性能测试-卡通人物2 [ 84%]

...e(); Laya.stage.loadImage("res/cartoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); text = new Text(); text.zOrder = 10000; text.fontSize = 60; text.color = "#ff0000" Laya.stage.addChild(text); Laya.timer.frameLoop(1, this, this.gameLoop); } createCharacters() { let char; let charSki...

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

44. 性能测试-卡通人物2 [ 84%]

...Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); animation.i...

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

45. IDE中继承Sprite对象,内部放入一个Animation,会报错 [ 84%]

... 就是play的问题。你在loadAnimation加载完成的回调里调用了this.player.play("fly");这个参数填错了,你把APlayer这个类里边调play的地方注释掉看下就知道了 rayln • 2017-07-10 13:38 感谢你的及时回答,问了如此2B的问题,谢谢! rayln...

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

46. 使用外部引擎播放layaair制作的.ani [ 83%]

...ight * 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画...

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

47. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 83%]

...画播放模式 在下面的示例代码中有一段代码 ```typescript this.skeleton = this.templet.buildArmature(); ``` 与内置版Spine动画播放模式不同的地方在于内置版我们需要传一个参数来确认使用哪种模式(三种模式中,0:不支持换装,1,2支持换装)...

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

48. 发现一个关于animator导出比较奇怪的问题 [ 83%]

...动效名称抓取动画对象播放动画啊  我看论坛里面都说  this.XX.play  就能播放  但是这个XX是什么类型的啊?    没有在Animation的动画文件   在.scene里面用时间轴直接做的 2019-09-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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

49. ui编辑器中使用龙骨动画问题 [ 83%]

...画问题 在UI编辑其中直接拖入一个龙骨动画F12导出,调用this.guge.play(1,true)运行会报错,如果不调用this.guge.play(1,true)方法会执行默认动作,添加上就会报错,见下图 最后各种尝试,折腾好久发现好像是,调用代码调用this。guge。p...

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

50. laya2 物理引擎好多问题 [ 82%]

...? onTriggerEnter(e:Laya.RigidBody):void{  var cil:Laya.CircleCollider=this.owner.getComponent(Laya.CircleCollider); var rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody); cil.enabled=false; rig.enabled=false; var self:Laya.Sprite= this.owner as Laya.Sprite; var ni:Laya.Animation=new Laya...

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