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

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

81. 在线急等,发现你们这个编译器一个bug,不能实现负负得正,昨天明明解决了,过了一会又不行了,怎么回事 [ 80%]

...moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.v...

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

82. 动画混合问题,Avatar动画混合报错. [ 80%]

... this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position...

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

83. getimagedata直接调用无法获取有效像素问题 [ 79%]

...(200, 0);             x = t.getPixels(0,0,400,400)             console.log(x)             for (let i of x) {                 if (i > 0) {                     console.log(i)                 }             }             console.log(' ----- 到...

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

84. List选中项下滚会变 [ 79%]

...参数index是选中项的下标 // _proto_.onSelect = function(index){ // console.log("index",index); // } _proto_.onMouse = function(e,index){ if(e.type == Laya.Event.CLICK){ //console.log(e.type,index); if(this.selectedIndex !== index){ if(this.selectedIndex!==-1){ //之前选中的列表项的...

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

85. 载入场景报错 [ 79%]

...nH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; console.log("load"); Laya.loader.create("TestScene/TestScene.ls", Laya.Handler.create(this, this.LoadSceneComplete)); } LoadSceneComplete() { console.log("finish") let scene: Laya.Scene = Laya.loader.getRes("TestScene/TestSce...

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

86. 微信开发者工具问题 [ 79%]

...e/gamePage.html:1:40288)     at http://127.0.0.1:15089/game/__ ... 20858 console.error @ VM698:1 errorReport @ WAGame.js:3 thirdErrorReport @ WAGame.js:3 (anonymous) @ WAGame.js:3 c @ WAGame.js:4 (anonymous) @ WAGame.js:4 function.setTimeout @ gamePage.html:1 (anonymous) @ WAGame.js:3 (anonymous) ...

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

87. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 79%]

...  onStart() {     //@ts-ignore     window.camera = this.camera;     console.log("Game start", this.camera._up);     console.log(       "Game start",       this.camera._up.x,       this.camera._up.y,       this.camera._up.z     );   } } 附件 : --> testProject.zip 2024-10-29 ...

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

88. 微信小游戏,请先初始化小游戏适配库 [ 79%]

...游戏适配库,详细教程https://ldc.layabox.com/doc/?nav=zh-ts-5-0-0 console.error Browser.__init__ @ code.js:7132 (anonymous) @ code.js:7057 (anonymous) @ code.js:53348 (anonymous) @ code.js:53360 require @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ game.js? [sm]:2 require @ WAGame.j...

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

89. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 79%]

...onLoaded方法里面 写一点测试代码 如下   function onLoaded(){ console.log("onLoaded"); //实例化RunGame // var runGame = new RunGame(); // Laya.stage.addChild(runGame); var sp = new laya.display.Sprite(); sp.x = 100; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); ...

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

90. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 79%]

...      if (!ILaya.stage.isVisibility) {             // console.log("_enterFrame...ILaya.stage._loop.........2222............enterTime=", ILaya.Browser.now());             ILaya.stage._loop();             ILaya.m_worker.postMessage(['wait']);       ...

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