On Sun, Jul 19, 2009 at 11:45 AM, Uuwawh<[email protected]> wrote: > I just started using cocos2d and I was trying to figure out two > different things. Is there a way to stick mutliple images in to one > sprite based class as "frame" (kinda like flash's movieclips?). Also > how do I make a functoin of my own creation get called by cocos2d main > loop or called at least every new frame? Could you please show me the > could set up for these two things as well as if i need to import any > particule code file to get this to work. >
To get your function called every frame you just do: node.schedule( callable ) This will make sure that 'callable' get called every frame when the node 'node' is on stage. see: http://cocos2d.org/doc/api/cocos.cocosnode.CocosNode-class.html#schedule (you also have unschedule and schedule_interval functions that you may find interesting) Lucio --~--~---------~--~----~------------~-------~--~----~ 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=en -~----------~----~----~----~------~----~------~--~---
