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

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

11. laya.display.Animation [ 84%]

...画的播放实质就是定时切换Graphics对象。 使用set source、loadImages(...)、loadAtlas(...)、loadAnimation(...)方法可以创建动画模版。使用play(...)可以播放指定动画。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefin...

来源: laya_api 发布时间: 20170929

12. Sprite中的width,height和size(width,height)感觉没作用啊 [ 83%]

... function Init(){ Laya.init(800,600); bg = new laya.display.Sprite(); bg.loadImage("res/bg.png"); bg.pos(0,0); bg.width = 100; bg.height = 100; bg.size(100,100); Laya.stage.addChild(bg); } 2016-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

13. 飞机大战出现的问题注册了类New的时候报错未定义 [ 81%]

...背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/bc.png"); //把背景1放在容器中 this.addChild(this.bg1); //创建游戏背景2 this.bg2 = new Laya.Sprite(); //加载并显示背景图 this.bg2.loadImage("war/bc.png"); //更改背景2,放在背景1的...

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

14. laya.display.Animation [ 80%]

...画的播放实质就是定时切换Graphics对象。 使用set source、loadImages(...)、loadAtlas(...)、loadAnimation(...)方法可以创建动画模版。使用play(...)可以播放指定动画。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefin...

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

15. 微信小游戏图片加载不出来 [ 78%]

...背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("ui/BG/play-bg.png", 0, 0, 720, 5120); //把背景图显示在容器内 this.addChild(this.bg1); //创建背景2 this.bg2 = new Laya.Sprite(); //加载并显示背景图 this.bg2.loadImage("ui/BG/play-bg.png", 0, 0, ...

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

16. sprite添加click监听事件反应迟钝 [ 78%]

...awyuan.graphics.drawCircle(0,0,50,"#232628");//反应非常迟钝 drawyuan.loadImage("../laya/assets/comp/textinput.png");//反应没有问题 drawyuan.size(100, 100); var x = Math.random() * Laya.stage.width; var y = Math.random() * Laya.stage.height; console.log(x + "" + y); drawyuan.pos(x,y); ret...

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

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

...失效 bg=new Laya.Sprite(); Laya.stage.addChild(bg); bg.size(800,600); bg.loadImage("aa_1.Png",0,0,800,600); poly=new Laya.Sprite(); bg.addChild(poly); poly.size(36,36); poly.pivot(18,18); poly.loadImage("SafeExitL.png",0,0,36,36); poly.pos(400,300); poly.on("mousedown", this, polyonMouseDown); bg....

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

18. 画出来鼠标轨迹线 [ 76%]

...获得遮罩层 //给两个老婆穿上衣服,并出现在舞台上 img1.loadImage("bg.jpg"); img2.loadImage("bg.jpg"); Laya.stage.addChild(img2); Laya.stage.addChild(img1); //给两个老婆穿上衣服,并出现在舞台上 //鼠标移动时触发的mousemove事件 function mousemove(){    ...

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

19. laya.media.SoundNode [ 76%]

...:Boolean 检测指定事件类型是否是鼠标事件。 EventDispatcher loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多...

来源: laya_api 发布时间: 20170422

20. 续飞机大战 [ 76%]

...背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/background.png"); //把背景1放到容器内 this.addChild(this.bg1); //创建背景2 this.bg2 = new Laya.Sprite(); //加载并显示背景图 this.bg2.loadImage("war/background.png"); //更改背景2,放到...

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