Reputation: 953
I've this problem: in my game, when I tap a sprite, an animation in called. This animation is stored inside a singleton class (called Animation) that is inizialized in the didFinischLaunching method. When I need for an action i use this code:
[self runAction:[[Animation sharedAnimation] animationName]];
On the device when I tap the sprite for the first time, occurs the following issues (one and only at the first tap):
This issues there aren't when I tap the same sprite for a second, third, etc times.
Ideas ??
Thanks very much!
Upvotes: 1
Views: 375
Reputation: 448
Do you alloc the spriteframes in your animation init method? If so, that's why.
Good luck!
Upvotes: 1