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

大约有 38 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)

1. tiledMap 45度地图在移动地图时出现没及时渲染的黑块 [ 100%]

... 创建地图 Parameters mapName:String — JSON文件名字  viewRect:Rectangle — 视口区域  completeHandler:Handler — 地图创建完成的回调函数  viewRectPadding:Rectangle (default = null) — 视口扩充区域,把视口区域上、下、左、右扩充一下,防止...

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

2. hitArea用法问题 [ 89%]

....graphics; this.closeBtn.hitArea = hitA;  // 写法三 let closeRect:Laya.Rectangle = new Laya.Rectangle(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20); this.closeBtn.hitArea = closeRect;  // closeBtn 为 Laya.Button 实例 this.closeBtn.on(Event.CLICK,this,t...

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

3. bitmap渲染问题 [ 86%]

...博 QZONE 微信 tangdelphi 赞同来自: copyPixels 问题,第二个参数Rectangle要先copy,js引用,同时在一些情况下会修改Rectangle值,你们是不是要说明下,这么大区别 2015-11-06 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...

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

4. 龙骨skeleton鼠标点击区域的设置 [ 86%]

...(0,true); Laya.stage.addChild(mArmature); mArmature.pos(300,600); var rect:Rectangle=new Rectangle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick);    2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: 于一个点为中心播放 :      this.mAr...

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

5. 求助关于TiledMap的版本问题 [ 86%]

...是图集乱了   package { import laya.map.TiledMap; import laya.maths.Rectangle; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaSample { private var tMap:TiledMap; public function LayaSample() { //初始化引擎 Laya.init(1136, 640,WebGL); //创...

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

6. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 85%]

... Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.pn...

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

7. scrollRect 改变后子对象的鼠标事件失效 [ 84%]

...,300); poly.on("mousedown", this, polyonMouseDown); bg.scrollRect=new Laya.Rectangle(100,100,700,500); bg.scale(1.5,1.5); ----------------------------------------------------------------------------- 加上这句bg.scrollRect=new Laya.Rectangle(100,100,700,500); 子对象的鼠标事件失效了 201...

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

8. scrollRect问题 [ 83%]

scrollRect问题 场景移动使用scrollRect方式,设置Rectangle的x,y坐标,在浏览器下正常,在app端显示不了,只能改成直接设置层的x,y坐标,不能使用Rectangle 用的最新版本 2018-02-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

9. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 82%]

...yer.ui { import app.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(...

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

10. HTMLDivElement如何设置文本区域内可以上下拖动的效果 [ 81%]

... laya.events.Event; import laya.html.dom.HTMLDivElement; import laya.maths.Rectangle; import laya.webgl.WebGL; public class HelloLaya { private var html:HTMLDivElement; public function HelloLaya() { Laya.init(600, 600,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.draw...

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