I’m trying to use the CCRipple 3D with Cocos2D like this:
-(void) addNewSpriteWithCoords:(CGPoint)p
{
id rippleAction = [CCRipple3D actionWithPosition:CGPointMake(p.x,p.y) radius:200 waves:10 amplitude:50 grid:ccg(32,24) duration:10];
[self runAction:[CCSequence actions:rippleAction, [CCStopGrid action], nil]];
}
(where p.x,and p.y correspond to the coordinates of every touch.)
But, when the effect is over it stops suddenly, and I have no idea how to change that? (I know that CCStopGrid stops the action in the grid, but I have no more clues)
Anyone knows how can I make the effect stops smoothly?
Thank you so much.
Yeah, that worked Sold Out Activist (sorry for answer you so late)! what I did was: