An interval action is an action that takes place within a certain period of time.
More...
An interval action is an action that takes place within a certain period of time.
It has an start time, and a finish time. The finish time is the parameter duration plus the start time.
These ActionInterval actions have some interesting properties, like:
- They can run normally (default)
- They can run reversed with the reverse method
- They can run with the time altered with the Accelerate, AccelDeccel and Speed actions.
For example, you can simulate a Ping Pong effect running the action normally and then running it again in Reverse mode.
Example:
Action *pingPongAction = Sequence::actions(action, action->reverse(), nullptr);
returns a clone of action
Implements FiniteTimeAction.
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, EaseElasticInOut, MoveTo, EaseElasticOut, MoveBy, EaseElasticIn, SplitCols, RotateBy, EaseElastic, SplitRows, Twirl, JumpTiles3D, EaseSineInOut, RotateTo, EaseSineOut, CatmullRomBy, CCBEaseInstant, Waves, WavesTiles3D, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, Liquid, CCBRotateXTo, TurnOffTiles, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, Shaky3D, EaseExponentialOut, FadeOutDownTiles, CardinalSplineTo, EaseExponentialIn, FadeOutUpTiles, AccelDeccelAmplitude, Ripple3D, Repeat, TiledGrid3DAction, EaseInOut, FadeOutBLTiles, FadeOutTRTiles, EaseOut, Lens3D, OrbitCamera, Sequence, EaseIn, Grid3DAction, FlipY3D, ShuffleTiles, EaseRateAction, FlipX3D, ProgressFromTo, ActionTween, ShatteredTiles3D, ActionCamera, Waves3D, PageTurn3D, ActionEase, GridAction, ProgressTo, and ShakyTiles3D.
returns a clone of action
Implements FiniteTimeAction.
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, EaseElasticInOut, MoveTo, EaseElasticOut, MoveBy, EaseElasticIn, SplitCols, RotateBy, EaseElastic, SplitRows, Twirl, JumpTiles3D, EaseSineInOut, RotateTo, EaseSineOut, CatmullRomBy, CCBEaseInstant, Waves, WavesTiles3D, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, Liquid, CCBRotateXTo, TurnOffTiles, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, Shaky3D, EaseExponentialOut, FadeOutDownTiles, CardinalSplineTo, EaseExponentialIn, FadeOutUpTiles, AccelDeccelAmplitude, Ripple3D, Repeat, TiledGrid3DAction, EaseInOut, FadeOutBLTiles, FadeOutTRTiles, EaseOut, Lens3D, OrbitCamera, Sequence, EaseIn, Grid3DAction, FlipY3D, ShuffleTiles, EaseRateAction, FlipX3D, ProgressFromTo, ActionTween, ShatteredTiles3D, ActionCamera, Waves3D, PageTurn3D, ActionEase, GridAction, ProgressTo, and ShakyTiles3D.
returns a clone of action
Implements FiniteTimeAction.
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, EaseElasticInOut, MoveTo, EaseElasticOut, MoveBy, EaseElasticIn, SplitCols, RotateBy, EaseElastic, SplitRows, Twirl, JumpTiles3D, EaseSineInOut, RotateTo, EaseSineOut, CatmullRomBy, CCBEaseInstant, Waves, WavesTiles3D, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, Liquid, CCBRotateXTo, TurnOffTiles, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, Shaky3D, EaseExponentialOut, FadeOutDownTiles, CardinalSplineTo, EaseExponentialIn, FadeOutUpTiles, AccelDeccelAmplitude, Ripple3D, Repeat, TiledGrid3DAction, EaseInOut, FadeOutBLTiles, FadeOutTRTiles, EaseOut, Lens3D, OrbitCamera, Sequence, EaseIn, Grid3DAction, FlipY3D, ShuffleTiles, EaseRateAction, FlipX3D, ProgressFromTo, ActionTween, ShatteredTiles3D, ActionCamera, Waves3D, PageTurn3D, ActionEase, GridAction, ProgressTo, and ShakyTiles3D.
returns a new action that performs the exactly the reverse action
Implements FiniteTimeAction.
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, EaseElasticInOut, EaseElasticOut, MoveBy, EaseElasticIn, RotateBy, EaseElastic, EaseSineInOut, RotateTo, EaseSineOut, CatmullRomBy, CCBEaseInstant, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, CCBRotateXTo, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, EaseExponentialOut, CardinalSplineTo, EaseExponentialIn, AccelDeccelAmplitude, Repeat, EaseInOut, EaseOut, Sequence, EaseIn, EaseRateAction, ProgressFromTo, ActionTween, ActionCamera, ActionEase, GridAction, and ProgressTo.
returns a new action that performs the exactly the reverse action
Implements FiniteTimeAction.
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, EaseElasticInOut, EaseElasticOut, MoveBy, EaseElasticIn, RotateBy, EaseElastic, EaseSineInOut, RotateTo, EaseSineOut, CatmullRomBy, CCBEaseInstant, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, CCBRotateXTo, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, EaseExponentialOut, CardinalSplineTo, EaseExponentialIn, AccelDeccelAmplitude, Repeat, EaseInOut, EaseOut, Sequence, EaseIn, EaseRateAction, ProgressFromTo, ActionTween, ActionCamera, ActionEase, GridAction, and ProgressTo.
returns a new action that performs the exactly the reverse action
Implements FiniteTimeAction.
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, EaseElasticInOut, EaseElasticOut, MoveBy, EaseElasticIn, RotateBy, EaseElastic, EaseSineInOut, RotateTo, EaseSineOut, CatmullRomBy, CCBEaseInstant, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, CCBRotateXTo, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, EaseExponentialOut, CardinalSplineTo, EaseExponentialIn, AccelDeccelAmplitude, Repeat, EaseInOut, EaseOut, Sequence, EaseIn, EaseRateAction, ProgressFromTo, ActionTween, ActionCamera, ActionEase, GridAction, and ProgressTo.
virtual void startWithTarget |
( |
Node * |
target) | |
|
|
overridevirtual |
called before the action start. It will also set the target.
Reimplemented from Action.
Reimplemented in TargetedAction, Animate, ReverseTime, TintBy, TintTo, FadeOut, FadeIn, FadeTo, Blink, ScaleBy, ScaleTo, BezierTo, BezierBy, JumpTo, JumpBy, SkewBy, SkewTo, MoveTo, MoveBy, SplitCols, RotateBy, SplitRows, RotateTo, Spawn, CCBRotateYTo, DeccelAmplitude, CCBRotateXTo, TurnOffTiles, CCBRotateTo, CardinalSplineBy, RepeatForever, AccelAmplitude, CardinalSplineTo, AccelDeccelAmplitude, Repeat, OrbitCamera, Sequence, ShuffleTiles, ProgressFromTo, ActionTween, ActionCamera, ActionEase, GridAction, and ProgressTo.
var startWithTarget |
( |
var |
target) | |
|
|
overridevirtual |
called before the action start. It will also set the target.
Reimplemented from Action.
Reimplemented in TargetedAction, Animate, ReverseTime, TintBy, TintTo, FadeOut, FadeIn, FadeTo, Blink, ScaleBy, ScaleTo, BezierTo, BezierBy, JumpTo, JumpBy, SkewBy, SkewTo, MoveTo, MoveBy, SplitCols, RotateBy, SplitRows, RotateTo, Spawn, CCBRotateYTo, DeccelAmplitude, CCBRotateXTo, TurnOffTiles, CCBRotateTo, CardinalSplineBy, RepeatForever, AccelAmplitude, CardinalSplineTo, AccelDeccelAmplitude, Repeat, OrbitCamera, Sequence, ShuffleTiles, ProgressFromTo, ActionTween, ActionCamera, ActionEase, GridAction, and ProgressTo.
local startWithTarget |
( |
local |
target) | |
|
|
overridevirtual |
called before the action start. It will also set the target.
Reimplemented from Action.
Reimplemented in TargetedAction, Animate, ReverseTime, TintBy, TintTo, FadeOut, FadeIn, FadeTo, Blink, ScaleBy, ScaleTo, BezierTo, BezierBy, JumpTo, JumpBy, SkewBy, SkewTo, MoveTo, MoveBy, SplitCols, RotateBy, SplitRows, RotateTo, Spawn, CCBRotateYTo, DeccelAmplitude, CCBRotateXTo, TurnOffTiles, CCBRotateTo, CardinalSplineBy, RepeatForever, AccelAmplitude, CardinalSplineTo, AccelDeccelAmplitude, Repeat, OrbitCamera, Sequence, ShuffleTiles, ProgressFromTo, ActionTween, ActionCamera, ActionEase, GridAction, and ProgressTo.