I'm new to cocos2d and have what I hope is a simple question about actions. I have sprite that I'm using to show that something is "selected" on the map. I want it to "pulse" when selected, so I'm scaling the sprite up and down using actions:
id scaleUp = [ScaleBy actionWithDuration: .15f scale: 1.1f];
id repeat = [RepeatForever actionWithAction: [Sequence actions: scaleUp, [scaleUp reverse], nil]];
[mapHighlightSprite runAction:repeat];
Works great, except if I stop highlighting when the sprite is running the "scaleUp" action -- it starts scaling from whatever the last size was. Is there a way to reset the actions so the sprite reverts back to it's normal state once it is unselected?
Thanks for any help!