开发者

Cocos2d - Iphone scheduleUpdate update not being called

I have a Player class that extends CCNode, and i want to hava a method that is called开发者_Python百科 every frame (update). In my init method i added the following line of code [self scheduleUpdate]; but my -(void) update:(ccTime)deltaTime method is never called why is that?


is the player added to the main node ?? with the addchild function ? I mean if you have another class which uses a player instance, you should add the player to that class with the addchild method

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜