Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- barrel setAnchorPoint:ccp(0.5,0.5)];
- id scaleUpAction = [CCEaseInOut actionWithAction:[CCScaleTo actionWithDuration:.35 scaleX:1.5 scaleY:1.5] rate:1.0];
- id scaleDownAction = [CCEaseInOut actionWithAction:[CCScaleTo actionWithDuration:.35 scaleX:1.0 scaleY:1.0] rate:1.0];
- CCSequence *scaleSeq = [CCSequence actions:scaleUpAction, scaleDownAction, nil];
- [barrel runAction:scaleSeq];
- id scaleUpAction = [CCScaleTo actionWithDuration:.35 scale:1.5];
- id scaleDownAction = [CCScaleTo actionWithDuration:.35 scale:1.0];
- CCSequence *scaleSeq = [CCSequence actions:scaleUpAction, scaleDownAction, nil];
- CCSPrite *tmpSPrite = (CCSPrite *)myBody->getUserData;
- if(tmpSprite)
- [tmpSPrite runAction:scaleSeq];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement