/**
* 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) {},
});
Action常见的时间间隔动作API
最新推荐文章于 2024-01-11 16:27:09 发布