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

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

211. l龙骨动画内存上升 [ 81%]

...stage.bgColor = "#ffffff";             Laya.stage.on(Event.CLICK, this, play);         }                  function play():void {             Laya.timer.loop(5000, this, function():void {                 playDragonBonesAnimation("BigAward/BigAward.sk",0...

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

212. this.bitmap.activeResource is not a function [ 81%]

this.bitmap.activeResource is not a function //开放域层级 private static _openZone:Laya.Sprite; //开放域纹理 private static _openZoneTexture:Laya.Texture; public static openZone(vx:number=0,vy:number=0,scaleX:number=1,scaleY:number=1) { if(!this._openZone) { //开放域 this._openZone = n...

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

213. Skeleton 类播放完成一遍后有没事件或者回调 [ 81%]

...play的第二个参数是true,监听mArmature.player.on(Event.COMPLETE,this,onComplete);即可 如果play的第二个参数是false,监听mArmature.on(Event.STOPPED, this, completeHandler);即可!   2017-08-07 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: sketon.player.on(Event.COMP...

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

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

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

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

215. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 81%]

...      createMap();          Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown);         Laya.stage.on(Event.MOUSE_UP, this, mouseUp);     })(); //创建地图     function createMap()     {         //创建地图对象         tiledMap = new TiledMap(...

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

216. parameter 2 is not of type 'WebGLTexture'. [ 80%]

... videoElement.load('res/video/mov_bbb.mp4'); // 添加到舞台 let wrap = this.getChildByName('wrap') as Laya.Box; wrap.addChild(videoElement); // 监听点击事件,开始播放视频 let btn_start = this.getChildByName('btn_start') as Laya.Image; btn_start.on(Laya.Event.CLICK,this,()=>{ // 加...

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

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

...面; */ var Panel1 = (function (_super) { function Panel1() { Panel1.super(this); //this.poke_a.x=0; } Laya.class(Panel1, "Panel1", _super); var _proto = Panel1.prototype; //======================================= //将指定的牌显示到桌面上 //======================================= _proto.s...

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

218. matter 2d 碰撞检测 [ 80%]

...onGameOver不是函数,麻烦有时间的大佬看看,很奇怪:   this.Matter.Events.on(this._engine, 'collisionActive', this.onCollision);   private onCollision(event): void { for(var i = 0; i < event.pairs.length; i++) {  var pair = event.pairs[i];  if(pair.bodyA.label === 'gun' &amp...

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

219. 分享一个自己做的游戏公告功能,跑马灯效果 [ 80%]

...                  </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** ...

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

220. UI-Clip [ 80%]

..."#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } showBg() { const Image = Laya.Image; let bg = new Image(bgSkin); bg.size(224, 302);...

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