Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mdsVibhor opened this issue Jul 6, 2017 · 1 comment
Open

Comments

@mdsVibhor
Copy link

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
Copy link
Contributor

s1ddok commented Jul 6, 2017

I think you should open this issue in cocos2d classic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants