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

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

1. Tween.to 执行失败 [ 100%]

...nsole.log(sprite.y) ; var hDir = Laya.stage.mouseX>sprite.x? "right" : "left" ; var vDir = Laya.stage.mouseY>sprite.y? "down" : "up" ; //先横着走,走完之后调用竖着走的函数 Tween.to(sprite,{x:Laya.stage.mouseX,y:sprite.y,update:new Handler(this,onWalk(hDir)),complete:Handler.cr...

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

2. 缓动-时间线 [ 90%]

...,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .addLabel("turnLeft",0).to(target,{x:100, y:300, scaleX:1, scaleY:0.2, alpha:0.1},2000,null,0) .addLabel("turnUp",0).to(target,{x:100, y:100, scaleX:1, scaleY:1, alpha:1},2000,null,0); timeLine.play(0,true); timeLine.on(Event.COMPLETE,this,...

来源: Laya_示例 发布时间: 20241001

3. 缓动-时间线 [ 89%]

...:450, y:300, scaleX:0.2, scaleY:1, alpha:1}, 2000, null, 0) .addLabel("turnLeft", 0).to(this.target, {x:100, y:300, scaleX:1, scaleY:0.2, alpha:0.1}, 2000, null, 0) .addLabel("turnUp", 0).to(this.target, {x:100, y:100, scaleX:1, scaleY:1, alpha:1}, 2000, null, 0); this.timeLine.play(0, true); this.t...

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

4. 加速器是不是不支持input:file [ 80%]

...不是不支持input:file  <div class="upload-wrap" id="upload" style="left: 0px; top: 0px; width: 0px; height: 0px; display: none;">     <input type="file" class="upload-pic" id="upFile" accept="image/jpeg,image/png" value="upload Img">     <span class="upload-text"></sp...

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

5. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 78%]

...3(-0.02, 0, 0); Laya.timer.once(0, null, Right); Laya.timer.once(50, null, Left); function Right() { other.owner.transform.translate(move1, true, false); } function Left() { other.owner.transform.translate(move2, true, false); } } } } } 2018-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

6. APP打包后运行效果与调试效果不一致(sprite,child) [ 76%]

...; = this._childs;    childs.sort(this.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{    return left.y-right.y; }   这样实现 当前Sprite里面的可移动sprite元素Y轴小的永远被Y轴大的遮挡,在IDE调试没有问题,但是打包APP(单机)...

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

7. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 73%]

...skin listPage/checkbox.png lose skin template/ButtonTab/btn_LargeTabButton_Left.png lose skin template/ButtonTab/btn_LargeTabButton_Middle.png [warn]Retry to load: listPage/bg_list.png [error]Failed to load: listPage/bg_list.png [attach]6987[/atta ch] 附件 : --> 2017-10-25 添加评论 免费帖 -...

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

8. 自己写了个label继承官方的label,出现了问题,求指导~ [ 70%]

..._italic; underline = _textFormat._underline; padding = String(_textFormat._leftMargin); // leftMargin = value.leftMargin; // rightMargin = value.rightMargin; // indent = value.indent; // leading = value.leading; } public function get txt():String { return _txt; } public function set txt(value:String...

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

9. ts加密md5码封装 [ 70%]

....from(args); x.forEach(n => t[0] = t[0] + n); return t[0]; } loop_shift_left(n: number, bits: number) { return (n << bits) | (n >>> (32 - bits)); } A = 0x67452301; B = 0xefcdab89; C = 0x98badcfe; D = 0x10325476; F(b: number, c: number, d: number) { return (b & c) | (~b & d)...

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

10. layabox有播放图片内指定小图帧的API吗? [ 68%]

...? this.animations.add('down', [0, 1, 2], 10, true); this.animations.add('left', [12, 13, 14], 10, true); 就是一个角色的上下左右动作都放一张图片里面了 2017-12-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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