Reputation: 422
I have a Player class that extends CCNode, and i want to hava a method that is called 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?
Upvotes: 2
Views: 3099
Reputation: 4939
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
Upvotes: 4