大约有 16 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0043 秒)
...te.x) ; console.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:...
来源: Laya_社区 发布时间: 20180331
...target.pos(100,100); } function createTimerLine() { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{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, s...
来源: Laya_示例 发布时间: 20241124
...上个动画的偏移时间(单位:毫秒) this.timeLine.addLabel("turnRight", 0).to(this.target, {x:450, y:100, scaleX:0.5, scaleY:0.5}, 2000, null, 0) .addLabel("turnDown", 0).to(this.target, {x:450, y:300, scaleX:0.2, scaleY:1, alpha:1}, 2000, null, 0) .addLabel("turnLeft", 0).to(this.target, {...
来源: Laya2.0_示例 发布时间: 20241124
... 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
...0, 0); var move2 = new Laya.Vector3(-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 添加评论 免...
来源: Laya_社区 发布时间: 20181017
... lyjkensou1 • 2018-01-31 14:06 请问一下遮罩可以使用left, top, right, bottom属性吗 https://ask.layabox.com/question/11412
来源: Laya_社区 发布时间: 20171221
...ng = 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):void { _txt = value; text = _txt; } public funct...
来源: Laya_社区 发布时间: 20170516
...ructor(){ super(); this.width = 443; this.height = 86; this.left = 0; this.right = 0; this.zOrder = 2; this.initItem(); } /** 初始化列表子项内容 * */ public function initItem(){ // 列表item的背景图 this.msgBG = new Image("res/ui/refreshList/img_bg22.png"); this.addChild(this.msgBG); t...
来源: Laya2.0_示例 发布时间: 20241124
...ying left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect sizeGrid skewX skewY skin sources stage staticCache texture timer toolTip top total transform url viewport visible width x y zOrder Methods _initialize _processActive _setHeight _...
来源: Laya3.0_api 发布时间: 20231115
...ying left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect sheet sizeGrid skewX skewY skin sources spaceX spaceY stage staticCache texture timer toolTip top total transform url value viewport visible width x y zOrder Methods _initialize _...
来源: Laya3.0_api 发布时间: 20231115