I'm making a game to spot the differences between 2 images. now i want to create a class 'Circle : CCSprite' to indicate the correct spot. I want to add a 'bouncing Effect' to the Circle(Just like iphone's warning modal window) I manually create CCActions, but the result is not as natural (since it's hard to control the duration and scale amount). Is there any better way to do this?
here is my code:
id up1 =[CCScaleBy actionWithDuration:0.2f scale:1.5f];
id down1 = [CCScaleBy actionWithDuration:0.2f scale:1 / 1.5f];
id up2 = [CCScaleBy actionWithDuration: 0.2f scale: 1.25f];
id down2 = [CCScaleBy actionWithDuration: 0.2f scale 1 / 1.25f];
id up3 = [CCScaleBy actionWithDuration: 0.2f scale 1.1f];
id down3 = [CCScaleBy actionWithDuration: 0.2f scale 1 / 1.1f];
[self runAction:[CCSequence actions:up1, down1, up2, down2, up3, down3, nil]];