大约有 49 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)
... ], "name": "ani1", "id": 1, "frameRate": 24, "action": 0 }] 其中: 什么操作的情况下"action": 1 ? 我在ide动画编辑模式中, 没有找到相关的触发操作. 我在其他的地方找到了"action": 1的情况, "action": 2的情况. 2019-06-06 添...
来源: Laya_社区 发布时间: 20190606
LayaAir有action相关的对象或者函数吗? 我看demo中运动都是通过修改坐标实现的,那样如果我想让sprite向一个不固定的坐标移动,只能每帧重新计算下坐标吗?引擎本身有没有moveto之类的对象和函数吗? 2016-06-27 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20160627
...ro", Air); var _proto = Hero.prototype; _proto.fly = function() { this.playAction("fly") } })(); air类: (function() { function Air(type, hp) { this.hp = hp; this.type = type; this.body = null; Air.__super.call(this); this.init(); } Laya.class(Air,"Air", laya.display.Sprite); var _proto = Air.prot...
来源: Laya_社区 发布时间: 20180911
...ction () { /** * 玩家类 */ function Player(){ //记录当前动作 this.action = null; //玩家 this.body = null; //跳 统计数 this.jumpCount = 0; //跳 最大次数 如果想三连跳 改成 3 即可 this.jumpCountMax = 2; //下落变量 this.vy = 0; //下落速度 this.downSpeed = 3; //最...
来源: Laya_社区 发布时间: 20160801
...ction () { /** * 玩家类 */ function Player(){ //记录当前动作 this.action = null; //玩家 this.body = null; //跳 统计数 this.jumpCount = 0; //跳 最大次数 如果想三连跳 改成 3 即可 this.jumpCountMax = 2; Player.__super.call(this); this.init(); } //玩家动作 //跑 Player....
来源: Laya_社区 发布时间: 20160801
...时,是根据动作类型设置是否循环。 this._animator.play(this._action); this._animator.getDefaultState().clip.islooping = this._action=="walk" || this._action=="idle"现在的问题是,当A怪物播放攻击动作时 B怪物如果正在走路或者待机 动作会停止, 定位到是...
来源: Laya_社区 发布时间: 20200410
...设置机身居中无法理解,还不如设置轴心点容易理解. playAction(action): void { this.body.play(0, true, action); var bounds: Laya.Rectangle = this.body.getBounds(); //设置机身轴心从左上角到中心 this.body.pivot(bounds.width / 2, bounds.height / 2); //设置机身居中 //...
来源: Laya_社区 发布时间: 20180206
...容相关的链接 提交 2 个回复 gajin2 赞同来自: cuixueying playAction()也可以这样: //根据类型播放动画 this.body.loadAnimation(action);//手动加载动画,这样可以不用修改引擎代码 this.body.play(0, true, action);//bug 2016-10-10 1 0 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20161006
...11-26 18:35:10.151 1632-1632/? D/Avrcp: AvrcpServiceBroadcastReceiver-> Action: android.intent.action.PACKAGE_ADDED 2018-11-26 18:35:10.151 1632-1632/? D/Avrcp: AvrcpServiceBroadcastReceiver-> packageName: com.layabox.dotJourney 2018-11-26 18:35:10.151 1632-1632/? D/Avrcp: packageName: com.lay...
来源: Laya_社区 发布时间: 20181126
... start -D -n "com.mygame.Shjy3Android/demo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix. Starting: Intent { act=android.intent.action.MAIN cat=[android.intent...
来源: Laya_社区 发布时间: 20170215