Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into develop

Conflicts:
	SpriteBuilder/SpriteBuilder.xcodeproj/project.pbxproj
  • Loading branch information
Benjamin Koatz committed Jun 18, 2014
2 parents 76a3633 + d058712 commit 7b4560d
Show file tree
Hide file tree
Showing 32 changed files with 11,543 additions and 109 deletions.
4 changes: 2 additions & 2 deletions Documentation/7. Working with Animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ You can automatically play back a sequence of timelines by chaining them. You ca
To have a timeline play in sequence, click the *No chained timeline* text and select the timeline you want to play right after the current one.

### Playing Back Animations in Code
To programmatically control the animations you create with SpriteBuilder you will need to retrieve the *CCBAnimationManager*. The animation manager will be assigned to the nodes *userObject* when the ccbi-file is loaded.
To programmatically control the animations you create with SpriteBuilder you will need to retrieve the *CCAnimationManager*. The animation manager is assigned to the node when the ccbi-file is loaded.

CCNode* myNodeGraph = [CCBReader load:@"myFile.ccbi"];
CCBAnimationManager* animationManager = myNodeGraph.userObject;
CCAnimationManager* animationManager = myNodeGraph.userObject;

The animation manager will be returned as an autoreleased object. To play back a specific timeline call the *runAnimationsForSequenceNamed:* method. If a timeline is currently playing, it will be immediately stopped when calling this method.

Expand Down
2 changes: 1 addition & 1 deletion SpriteBuilder/Requirements.plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>os</key>
<array>
<string>10.8</string>
<string>10.9</string>
</array>
</dict>
</plist>
Loading

0 comments on commit 7b4560d

Please sign in to comment.