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

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

751. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 60%]

...   private const stageWidth:int = 540;         private const stageHeight:int = 960;                  private var Matter:Object = Browser.window.Matter;         private var LayaRender:Object = Browser.window.LayaRender;                  private var mouseConstrain...

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

752. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 60%]

... this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this, this.onSWFPlayComplete,[state]); return this.swfAni...

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

753. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 60%]

...drawTexture(texture); //设置纹理宽高 img.size(texture.width, texture.height); } } } ``` 代码运行效果如图7-2所示。 ![动图7-2](img/7-2.gif) (动图7-2)

来源: Laya2.0_文档 发布时间: 20210715

754. laya.display.Animation [ 60%]

...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX、scaleY。...

来源: laya_api 发布时间: 20170929

755. 如何获取游戏宽高 [ 60%]

...链接 提交 1 个回复 啊浪 赞同来自: 找到了,在Laya.Stage.height 2018-08-07 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 啊浪 相关问题 写个捕鱼游戏练练手 请问有没有方法能够获取“鼠标是否处...

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

756. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 60%]

...ct: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.createMap("res/mario_map/new_map2.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { var layer = this.tMap.getLayerByIndex(9); var gs = layer.getObjectByName('others1'); v...

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

757. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 60%]

...    sp.x = Laya.stage.width / 2;             sp.y = Laya.stage.height / 2;         }   发布成单机版apk在移动端安装运行,移动端报错提示: http://www.xxx.com/LayaUISampl ... annot read property 'start' of null this.sp.emitter.start(Number.MAX_VALUE); TypeError...

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

758. 为什么mc取得的时候有时候mc.getBounds().width;有值有时候是0 [ 60%]

...E_FIXED_WIDTH适配屏幕的问题 HTMLDivElement <img>标签width、height在手机端无效 版本2.1.0HTMLDivElement设置width无效,被自动换行!!! 页面中的width问题 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 IDE打开某个场景时弹...

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

759. 打包为APP后,Lable的宽高有所变化,请问如何修正? [ 60%]

...2.text = "上个Lable的宽: " + demoLable1.width + ", 高: " + demoLable1.height; demoLable2.fontSize = 50; demoLable2.bgColor = "#0FF"; demo.addChild(demoLable2.pos(0,50)); } 附件 : --> 2018-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

760. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 60%]

...) _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)...

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