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

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

11. LayaAir引擎1.7 之后as转换js,出现问题 [ 84%]

...问题 as 代码 override public function get visible():Boolean  { return super.visible; } override public function set visible(value:Boolean):void  { super.visible = value; if (value) _mcAni.removeFromParent(); }   1.7之后的转换 __getset(0,__proto,'visible',function(){ return Laya.superGet(...

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

12. 物体随着鼠标滑动旋转脚本 [ 82%]

...滑动旋转脚本 function ObjectRotate() {          ObjectRotate.super(this);//这里不太清楚作用       //最终鼠标在X轴上的值     this.lastMouseX = NaN;           //最终鼠标在Y轴上的值                  this.lastMouseY = NaN;            ...

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

13. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 82%]

...91859396用户 • 2020-06-11 15:11 @Laya_Aaron:var MainSceneUI=(function(_super){ function MainSceneUI(){ this.Btn_Task=null; MainSceneUI.__super.call(this); } CLASS$(MainSceneUI,'ui.MainSceneUI',_super); var __proto__=MainSceneUI.prototype; __proto__.createChildren=function(){ _super.prototype.cre...

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

14. 跟着老师打地鼠游戏写的代码,JS为什么会出错 [ 81%]

...师打地鼠游戏写的代码,JS为什么会出错 var Game=(function(_super){ function Game(){ Game.super(this); this.mole=new Mole() //这里会报错 } Laya.class(Game,"Game",_super); return Game; })(ui.GameUI) var GameUI=(function(_super){ function GameUI(){ this.btn_start=null; this.audio=nu...

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

15. 这个写法是什么意思,能否解释一下,谢谢 [ 81%]

...s.bg2 = null;         //初始化父类         BackGround.__super.call(this);         this.init();     }     //注册类 BackGround     Laya.class(BackGround, "BackGround", laya.display.Sprite);   问题: 1.Laya.class(BackGround, "BackGround", laya.display.Sprite); ...

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

16. 【简单跑酷--JS版】---Lv.6 终篇 [ 80%]

..._VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.init(type); } //能量类型 Hp.HP_TYPE_ENERGY = "hp_type_energy"; //速度类型 Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.ini...

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

17. Laya api 中可能的bug [官方来看] [ 79%]

...n(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑似bug,麻烦官方帮忙确认 /**z排序,更改此值,则会按照值的大小对同一...

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

18. LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 [ 79%]

LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 LoginView.super(this);这是在教学视频里用的方法,好像不能用了。 这些layaair中特别的语法规则在哪里统一可以找到 var LoginView = function () {     LoginView.super(this);     t...

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

19. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 79%]

...ddChild(over); } hero类: (function() { function Hero(type, hp) { Hero.__super.call(this); this.fly(); } Laya.class(Hero,"Hero", Air); var _proto = Hero.prototype; _proto.fly = function() { this.playAction("fly") } })(); air类: (function() { function Air(type, hp) { this.hp = hp; this.type = ty...

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

20. 新手,图片加载不进去,没有报错。很疑问 [ 77%]

...链接 提交 1 个回复 Laya_XS 赞同来自: var BackGround=(function(_super){ function BackGround(){ BackGround.__super.call(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("comp/bg.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.S...

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