Skip to content

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

Open
@mdsVibhor

Description

@mdsVibhor

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];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions