On Sun, Nov 15, 2009 at 12:46 PM, nederhoed <[email protected]> wrote:
> Hello all, I'm very happy with Cocos2d and am on my way to create a > simple first game with it. Yeah! > > But... I have a bird with wings that flap: 4 rotating images. A Sprite > object accepts only 1 image... > > How can I create an animated Sprite? My first idea is to subclass > Sprite and swap the visible image every second or so. > Is this the way to go? > I will post my AnimatedSrite code using this option when it's done. > > Thanks for you help! Robert > > -- > > Yes, preloading the images and then and then assign the Sprite .image member as needed would be fine. -- claudio -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=.
