大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0016 秒)
...秒) 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, {x:100, y:300, scaleX:1, scaleY:0.2, alph...
来源: Laya2.0_示例 发布时间: 20241117
...Hold() { const Tween = Laya.Tween, Ease = Laya.Ease; Tween.to(this.ape, { "scaleX": 1, "scaleY": 1 }, 500, Ease.bounceOut); isApeHold = true; } /** 鼠标放开后停止hold */ onApeRelease() { const Tween = Laya.Tween, Event = Laya.Event; // 鼠标放开时,如果正在hold,则播放放开的...
来源: Laya2.0_示例 发布时间: 20241117
... - pos2.y; let dist = Math.sqrt(distX * distX + distY * distY) + 40; laser.scaleX = dist / 20; laser.pos(pos1.x, pos1.y); laser.pivotY = 43 / 2; laser.blendMode = "lighter"; laser.rotation = (Math.atan2(distY, distX) + Math.PI) * 180 / Math.PI; lasers.push(laser); Laya.stage.addChild(laser); frequen...
来源: Laya2.0_示例 发布时间: 20241117
...次距离变化,确定是放大还是缩小 const factor = 0.01; this.sp.scaleX += (distance - lastDistance) * factor; this.sp.scaleY += (distance - lastDistance) * factor; lastDistance = distance; } onMouseUp(e) { const Event = Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove);...
来源: Laya2.0_示例 发布时间: 20241117
...BoyClick(e) { //点击后小人会放大缩小 let boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } onTxtClick(e) { //点击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes[index]; this.tx...
来源: Laya2.0_示例 发布时间: 20241117