Search code examples
objective-ccocos2d-iphone

CCSprite doesn't run actions when it is child of custom class which parent is CCSprite


I'm renaming old post. After suggestions provided here, I made several tests and found that CCSprite doesn't run actions when it is child of an object which is instance of a custom class which parent is CCSprite

whats wrong?


Solution

  • I found the problem. In my custom class I was overriding - (void)onEnter function without calling [super onEnter];

    now my onEnter function looks like:

    • (void)onEnter { // call super implementation [super onEnter];

      self.userInteractionEnabled = TRUE; }

    It fixed animation problem