大约有 4 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0024 秒)
...2.3 快速加速运动(strongIn)2.4 往后再反向(backIn)三、Tween3.1 基础用法3.2 生命周期3.3 回调函数3.4 缓动函数3.5 串行和并行3.6 自定义插值函数缓动 一、概述 缓动的最大用处就是应用在设计的运动表现上,可以结合物理、数学等...
来源: Laya3.0_文档 发布时间: 20250310
...= 35; this.value.visible = true; Main.instance.animator.play("stun"); Laya.Tween.create(this.value).to("y", -30).duration(1000); } } 上述代码中的Main.instance.animator.play("Stun");表示改变动画状态,目的是在减少血量时播放受到攻击的动画。需要在场景的Scene2D中...
来源: Laya3.0_文档 发布时间: 20250310
...示例中,是通过每40毫秒来循环检查角色行走路线,通过Tween来执行角色位置改变的 //开启定时重复执行 Laya.timer.loop(40, this, this.loopfun); private loopfun(): void { //resPath,角色需要移动的每个世界坐标位置数组 if (this.resPath && this...
来源: Laya3.0_文档 发布时间: 20230303
... null); //设置图片的点击事件 sp.on("click", this, () => { Laya.Tween.to(sp, { scaleX: 0.5, scaleY: 0.5 }, 100); }); //设置鼠标点击区域 let hitArea: Laya.HitArea = new Laya.HitArea(); hitArea.hit.drawRect(0, 0, 100, 100, "#00ff00"); sp.hitArea = hitArea; 我们来看看运行结...
来源: Laya3.0_文档 发布时间: 20250103