cocos2d / cocos2d-objc

Cocos2d for iOS and OS X, built using Objective-C
http://www.cocos2d-objc.org
Other
4.07k stars 1.16k forks source link

Stuck in adding Ripple effect on an image with CCSpriteGrid extension. #1391

Open mdsVibhor opened 7 years ago

mdsVibhor commented 7 years ago

Is there any way to get ripple effect on image in Objective C ios Application. I am using cocos2d-objc framework for ios application.

UIImage spriteNumber = [UIImage imageNamed:@"congrats.png"]; CCSpriteGrid grid = [[CCSpriteGrid alloc] initWithTexture:[[CCTexture alloc] initWithCGImage:spriteNumber.CGImage contentScale:spriteNumber.scale]]; grid.position = (CGPoint){0.5, 0.25}; grid.positionType = CCPositionTypeNormalized; [grid setGridWidth:100 andHeight:50]; [self addChild:grid];

s1ddok commented 7 years ago

I think you should open this issue in cocos2d classic