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

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

81. 重复背景,全方向地图拖动Demo [ 61%]

...age.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown) Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp) this.moveMap(this.offsetX,this.offsetY) } moveMap(x,y){ let X = -x00 let Y = -y00 this.map0.x = X this.map0.y = Y this.map3.x = X + 1800 this.map3.y = Y + 1800 if(X < -540){ this.map1.x = X + 18...

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

82. 滚动地图问题 [ 60%]

...,在手机上滑动,地图还是会移动,主要是因为Mouse_DOWN, Mouse_UP是加在Laya.stage上的,请问什么好一点的办法让我打开Dialog的时候,滑动屏幕,后面的TiledMap不会滚,Dialog关掉,后面地图又可以滚动? 2017-09-02 添加评论 免费帖 --> ...

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

83. laya.events.Event [ 60%]

...useover[static] 定义 mouseover 事件对象的 type 属性值。Event  MOUSE_UP : String = mouseup[static] 定义 mouseup 事件对象的 type 属性值。Event  MOUSE_WHEEL : String = mousewheel[static] 定义 mousewheel 事件对象的 type 属性值。Event  OPEN : String = open[static] ...

来源: Laya2.0_api 发布时间: 20190513

84. 3D模型旋转问题,鼠标移动之后,根据按下移动的X坐标差值判断左右旋转,但是会越转越快,请问是什么问题? [ 59%]

...s.rotate(vec); } }   监听的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,this.mouseMove);   private mouseDown():void{ let mX:number = Laya.stage.mouseX; this.lastMouseX ...

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

85. laya.events.Event [ 59%]

...useover[static] 定义 mouseover 事件对象的 type 属性值。Event  MOUSE_UP : String = mouseup[static] 定义 mouseup 事件对象的 type 属性值。Event  MOUSE_WHEEL : String = mousewheel[static] 定义 mousewheel 事件对象的 type 属性值。Event  OPEN : String = open[static] ...

来源: laya_api 发布时间: 20170929

86. 无法清除指定定时器 [ 59%]

...   trace("______________________");         } this.stage.on(Event.MOUSE_UP, this, onB); private function onB():void          {             Laya.timer.clear(this, this.looppp);             SoundManager.playSound("res/sound/onClick.wav");         } 我这边测...

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

87. Stage中删除不掉Scene [ 59%]

Stage中删除不掉Scene Laya.stage.on(Laya.Event.MOUSE_UP, this, function () {     var str = "";     if (!hit.sprite3D) {         str = "点击选取的几何体";     } else {         Laya.stage.removeChild(scene3D);     }     console.log(str); });     每次删除scene3D后...

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

88. down点击事件一直派发情况 [ 58%]

...self, self.onHandle); 这里用CLICK事件替代,或者同时监听一个MOUSE_UP事件,当鼠标抬起时,将MOUSE_DOWNshi事件移除 2017-03-07 0 1 分享 微博 QZONE 微信 yanmingjie 赞同来自: demo已经上传 重现步骤: (1)运行游戏 (2)打开控制台(f12) (3...

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

89. laya.ui.UIEvent [ 58%]

...mouseover[static] 定义 mouseover 事件对象的 type 属性值。Event MOUSE_UP : String = mouseup[static] 定义 mouseup 事件对象的 type 属性值。Event MOUSE_WHEEL : String = mousewheel[static] 定义 mousewheel 事件对象的 type 属性值。Event OPEN : String = open[static] 定...

来源: Laya2.0_api 发布时间: 20190513

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

...e) { this.imag= img; this.imageName=tempImageName; this.imag.on(Laya.Event.MOUSE_UP, this, this.hit); //this.img.on(Laya.Event.) } var _proto = Poker.prototype; _proto.show = function () { this.imag.y = 50; } _proto.hit = function () { if ( this.imag.y == 50) { this.imag.y = 150; } else if(this.imag...

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