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

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

1. Laya.util.Ease这个类是用来配合Tween的,可是怎么使用?没有任何资料啊。 [ 100%]

...同来自: shaotianhk backOut () method  public static function backOut(t:Number, b:Number, c:Number, d:Number, s:Number = 1.70158):Number开始运动时是朝目标移动,稍微过冲,再倒转方向回来朝着目标。 Parameters  t:Number — 指定当前时间,介于 0 和持续时间...

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

2. 问一下tween的一些参数怎么设置 [ 97%]

...果的次数和时间,即缓动效果的幅度。 static elasticOut(t: number, b: number, c: number, d: number, a?: number, p?: number): number; 我看这个是有参数可以控制的,但是在tween中怎么使用这些参数? cuixueying • 2016-09-22 22:10 /** * 以较快速度开始运动...

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

3. Laya.Tween.to [ 97%]

...值。          */         public static function cubicOut(t:Number, b:Number, c:Number, d:Number):Number {             return c * ((t = t / d - 1) * t * t + 1) + b;         } 你可以直接向这个方法里传值 2018-05-03 1 0 分享 微博 QZONE 微信 为什么被折...

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

4. Tween.to 中 用Ease.circIn 做 加速运动 能设置初试速度吗 ?默认是 0 能改成别的吗?如果能?怎么改? [ 92%]

...rn 指定时间的插补属性的值。 */ public static function circIn(t:Number, b:Number, c:Number, d:Number):Number { return -c * (Math.sqrt(1 - (t /= d) * t) - 1) b; }   2018-04-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Yan...

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

5. 想修改Ease的参数 [ 89%]

...大。 * @return 指定时间的插补属性的值。 */ static backOut(t: number, b: number, c: number, d: number, s?: number): number; 看到可以修改参数值,可是不明白怎么在tween里调用 2017-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

6. 关于缓动实现曲线运动另类 [ 87%]

...实现铺满全屏,又不被拉伸? 刮刮卡效果实现 drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 问题状态 最新活动: 2019-11-08 16:31 浏览: 778 关注: 1 人

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

7. Ease.elasticOut如何自定义参数,直接设置的话会变成number [ 87%]

Ease.elasticOut如何自定义参数,直接设置的话会变成number 之前论坛有人问,但是官方并没有给出明确解释啊~~... 附件 : --> 2018-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回...

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

8. 颜色滤镜 差值变化 [ 86%]

...色工具类      */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.ColorFilter = null; private _persent: number =...

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

9. DialogManager设置弹出效果后,第一次能打开,第二次就打不开了。 [ 85%]

...;{ var dialog:Dialog = <Dialog>e; dialog.y = - dialog.height; var yy:number = (Laya.stage.height - dialog.height)/2; Laya.Tween.to(dialog,{y:yy},600,Laya.Ease.backOut); },[],false); this.gameHelpDialog = new view.GameHelpDialog(); 2017-11-14 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

10. 如何用Tween 给graphics.drawLine 设置缓动 [ 85%]

...Sprite; public class LayaAirDemo { private var sp:Sprite; private var endX:Number; private var endY:Number; public function LayaAirDemo() { Laya.init(600,600); sp=new Sprite(); Laya.stage.addChild(sp); endX=0; endY=0; sp.graphics.drawLine(10,10,endX,endY,'#FF0000'); Laya.timer.frameLoop(1,this,onFra...

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