Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.528 kb

CCTouchableSprite

Touchable CCSprite for cocos2d framework with Objective-C Blocks

How to use:

[xButton setTouchBlock:^(CCSprite *sprite) {
            CCAction *actionDown =
            [CCSequence actions:
             [CCEaseIn actionWithAction:[CCMoveTo actionWithDuration:1 position:ccp(0, 0)] rate:3],
             nil];

            [credits runAction:actionDown];
        }];

or

[xButton setTouchTarget:self action:@selector(callbackMethod)];
Jump to Line
Something went wrong with that request. Please try again.