How to learn "Animations in COCOS2D"

I am new to cocos2d animation, and I want to learn it, because I always stop at the animation point, making iPhone games in cocos2d.

Can anyone suggest me a way to learn such animations in order to create an animation of the games is easy to do.

Thank.

+5
source share
4 answers

It seems that there are two ways to go - either your sprites are laid out in the usual way, and therefore they can be removed from the sprite sheet programmatically, like this first example. Another way is to use a tool such as Zwoptex to create a sprite sheet and the corresponding plist that tells Cocos2d where to find the images on the sheet, see the second example.

A tutorial for getting sprites from a worksheet using a regular layout:

http://getsetgames.com/2010/04/18/how-to-animate-sprites-in-cocos2d/

The basics:

  • Get your images into one large image / texture.
  • Create CCSpriteSheet using this texture
  • Create CCSprite using one of the images in the sprite sheet
  • Create a CCAnimation and fill it with a CCSpriteFrame - each representing a frame in the animation
  • CCAnimate, , voila.

, Zwoptex, , .

:

http://www.raywenderlich.com/606/how-to-use-box2d-for-just-collision-detection-with-cocos2d-iphone

, ,

+12

cocos2d. . github.com, , cocos2d

+5

, , 2 :

These 2 tools are great for working with it. The Texture Packer has also integrated a physics editor that can be used to integrate physics into the game. You can get a tutorial for both of these animations from Ray Wenderlich Demos.

+2
source

This course will help you build a game with Cocos2D, but it costs $ 99. But the animation is covered by the course, so you can look at this direction:

Press here

0
source

All Articles