"Animation Clip with relative movement"


At the moment, the workflow to create an animation clip for a sprite, you have to

Create > Animation Clip to create the animation clip object.
Add an “Animation Component” to add an animation component to a Node.
Drag the Animation Clip to the “DefaultClip” or “Clips” list on the node.
Use the Timeline Editor to actually alter the clip and add easing curves to the sprites movement.

However, I have a number of sprites that I want to move the same way - I can attach the animation to them, but they all animate from the recorded starting position of the first sprite.

Also, if I move the first sprite, the Animation Clip reverts the animation to the recorded starting position.

I remember in Cocos2d-x / Cocos Studio that the equivalent “Animation” structure could be played back in a relative way, such that you could even additively combine animation clips - A vertical bounce animation clip played at the same time as a horizontal movement animation clip would result in the node tracing a wave.

I seem to be dumb: How can I get the same facility in Cocos Creator?


You should make your sprites as child of your root node in prefab’s Node Tree. This sprites are able in Timeline Editor.