I scale my sprite object to cocos2d using the CCScaleTo method. This is not perfect scaling, so I use this code:
id action1=[CCScaleTo actionWithDuration:0.5 scale:1.25];
id action2=[CCScaleBy actionWithDuration:0.5 scale:.25];
id action3=[CCScaleTo actionWithDuration:0.5 scale:1.25];
id action4=[CCScaleTo actionWithDuration:0.5 scale:.25];
[timeUpImg runAction:[CCSequence actions:action1,action2,action3,action4,nil]];
This works great.
I do not know the difference between ccScaleByand CCScaleTo, and also how to use the "reverse" method. Can someone explain this please?
source
share