Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkemose committed Jun 17, 2014
1 parent effb04d commit 66f607a
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions Extensions/CCSpine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,25 @@ Normally it takes 3 files to create an animated skeleton.
2) A PLIST file containing sprite sheet frames
3) A PNG file containing images.

The basic node is a CCSpineSkeleton. The skeleton is based on a CCNode, so anything which works on a node, will work on the skeleton.
The tasks to go through, creating a skeleton

1) Create the skeleton using skeletonWithJsonFile
2) Position and add the skeleton to a parent
3) Select a skin using assignSkin
4) Select a base animation using setBaseAnimation

The skeleton animation can be controlled in the following way
1)
Setting the base animation
This animation will loop, when no opther animation is active.
2)
Inserting animations.
The first animation which is inserted, will immediately blend from the base animation to the inserted animation.
Further animations inserted, will be executed when the previous inserted animation is completed.
When all inserted animation has completed, animation will return to the base animation.
3)
Force an animation
Forcing an animation, will clear any inserted animation, and make this the new base animation.
Just setting a new base animation 1) will only not clear inserted animations.
The basic node is a CCSpineSkeleton.
The skeleton is based on a CCNode, so anything which works on a node, will work on the skeleton.
The tasks to go through, creating a skeleton

1) Create the skeleton using skeletonWithJsonFile
2) Position and add the skeleton to a parent
3) Select a skin using assignSkin
4) Select a base animation using setBaseAnimation

The skeleton animation can be controlled in the following way
1)
Setting the base animation
This animation will loop, when no opther animation is active.
2)
Inserting animations.
The first animation which is inserted, will immediately blend from the base animation to the inserted animation.
Further animations inserted, will be executed when the previous inserted animation is completed.
When all inserted animation has completed, animation will return to the base animation.
3)
Force an animation
Forcing an animation, will clear any inserted animation, and make this the new base animation.
Just setting a new base animation 1) will only not clear inserted animations.

0 comments on commit 66f607a

Please sign in to comment.