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

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

251. laya.display.Sprite_API3.0 [ 68%]

...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { sprite = new Sprite();//创建一个 Sprite 类的实例对象 sprite 。 sprite.loadImage("resource/ui/bg.png");//加载...

来源: Laya3.0_api 发布时间: 20231115

252. 请问有没有方法能够获取“鼠标是否处于按下状态”? [ 68%]

...没有方法能够获取“鼠标是否处于按下状态”? 比如Laya.stage.XXXXX()之类的 2017-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 189*****192 赞同来自: zhang92tong 、cuixueying 、Za...

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

253. 使用 addChild 加载界面后,绑定事件报错 [ 68%]

...Config.startScene);         Main.gameStart = new GameStart(); Laya.stage.addChild(Main.gameStart); }   在官方示例 Main.ts 中,使用Laya.stage.addChild(Main.gameStart); 加载场景后报上面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartU...

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

254. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 68%]

...etViewPortPivotByScale(0,0); //将原地图放大3倍 tMap.scale = 3; Laya.stage.on(Event.RESIZE,this, this.resize); Laya.stage.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.mouseUp); resize(); } /** * 移动地图视口 */ private function mouseMove():void { v...

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

255. http无响应 [ 68%]

.../成功则进入会员列表 var mblv = new BriefView(); mblv.init(); Laya.stage.addChild(mblv); //销毁自身 //this.removeSelf(); this.destroy(); */ connect(); } } //忘记密码 LoginView.prototype.onLableWjmm = function () { this.dlgs = new TanChuang(); this.dlgs.init(); this.dlgs.setContext("...

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

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

...例: mArmature = mFactory.buildArmature(1); mArmature.play(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 ...

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

257. 使用方向键 控制精灵在格子中移动 [ 68%]

...RPG游戏开发 可以加我的微信 一起研究 13890999   事件 Laya.stage.on(Laya.Event.KEY_UP,this,this.onkeyup); Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown); Laya.timer.frameLoop(1,this,this.loop);事件响应 onkeyup(e){ for(let i:number = 0;i<this.keyList.length;i++){ if(thi...

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

258. 绘制形状时事件不触发 [ 68%]

... var ring = new myRing(600, 300, 18, "#087729", 40, "#a87729");     Laya.stage.addChild(ring.sprite); }   laya_test();   代码如上,点击绘制的圆环,无触发事件 使用的库为LayaAirJS_1.5.5_beta,库内无修改   laya air引擎使用过程中,经常发现各种不触发事...

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

259. 区块地图-PerspectiveWall [ 68%]

...veWall { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(700, 500, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage....

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

260. TimeLine调用destroy报错&执行完成后回到起点 [ 68%]

...to.run (HMain.max.js:9196) at Timer.__proto._update (HMain.max.js:8951) at Stage.__proto.render (HMain.max.js:16932) at Stage.__proto._loop (HMain.max.js:16892) at loop (HMain.max.js:5472)    private function createTimerLine():void { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX...

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