Does action sequence support

I have has many sprites, sprite1 and sprite2, …, sprite100. I want sprite1 moves form point A to point B, when it arrives point B, then sprite2 stars to move, and so on. Different sprite’s moving action has a different duration time. how to make it happen?

kd emp wrote:

I have has many sprites, sprite1 and sprite2, …, sprite100. I want sprite1 moves form point A to point B, when it arrives point B, then sprite2 stars to move, and so on. Different sprite’s moving action has a different duration time. how to make it happen?

you can use CCCallfunc which is a callback action, and also CCDelay

var moveToPointB = cc.MoveBy.actionWithDuration(2, pointB);
var runSprite2 = cc.Callfunc.action……//i forgot, check the sample code
sprite1.runAction(cc.Sequence.actions(moveToPointB, runSprite2));

OR

you can delay your second sprite movement

var moveForSprite2 = cc.MoveBy.actionWithDuration(2, newLocation);
sprite2.runAction(cc.Sequence.actions(cc.DelayTime.actionWithDuration(2), moveForSprite2));