Action常见的时间间隔动作API

/**
 * Author:W
 * Node节点的常见时间间隔动作【继承自cc.ActionInterval】:在一定时间间隔内完成的渐变动作。参照表如下:
 * cc.moveTo 移动到目标位置
 * cc.moveBy 移动目标偏移量到目标位置
 * 
 * cc.rotateTo 旋转到目标角度
 * cc.rotateBy 旋转目标偏移量到目标角度
 * 
 * cc.scaleTo 缩放到目标倍数大小
 * cc.scaleBy 缩放目标缩放量到目标大小
 * 
 * cc.skewTo 偏斜到目标角度
 * cc.skewBy 偏斜指定角度
 * 
 * cc.jumpTo 用跳跃的方式移动到目标位置
 * cc.jumpBy 用跳跃的方式移动到指定位置
 * 
 * cc.follow 追踪目标节点的轨迹
 * 
 * cc.bezierTo 按贝济埃曲线轨迹移动到目标位置
 * cc.bezierBy 按贝济埃曲线轨迹移动到指定位置
 * 
 * cc.blink 闪烁
 * cc.fadeTo 修改透明度到指定值
 * cc.fadeIn 渐渐显示
 * cc.fadeOut 渐渐隐藏
 * 
 * cc.tintTo 修改颜色到指定值
 * cc.tintBy 按照指定的增量修改颜色
 * 
 * cc.delayTime 延迟指定的时间量
 * cc.reverseTime 反转目标动作的时间轴
 * 
 * cc.cardinalSplineTo 按基数样条曲线轨迹移动到目标位置
 * cc.cardinalSplineBy 按基数样条曲线轨迹移动到指定位置
 * 
 * cc.catmullRomTo 按catmullRom曲线轨迹移动到目标位置
 * cc.catmullRomBy 按catmullRom曲线轨迹移动到指定位置
 */

cc.Class({
    extends: cc.Component,

    properties: {
        // foo: {
        //     // ATTRIBUTES:
        //     default: null,        // The default value will be used only when the component attaching
        //                           // to a node for the first time
        //     type: cc.SpriteFrame, // optional, default is typeof default
        //     serializable: true,   // optional, default is true
        // },
        // bar: {
        //     get () {
        //         return this._bar;
        //     },
        //     set (value) {
        //         this._bar = value;
        //     }
        // },
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    // update (dt) {},
});

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Data菌

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值