You have chance to learn a blast soccer ball by this example, I is fully described to learn easily.
Ball picture: First take a soccer ball picture to give effect.
Selection: We have to divide this soccer ball in the pieces so make selection by the polygonal lasso tool (U key). After selection press Ctrl + J
Another Parts: Use same selection to make pieces,
Image Ready: In the image ready you have to adjust all the pieces layer, I have given here a one layer example. You have to make all the layer according to this position.
You animation window should look similar as here.
This is your animation.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.