Alex
Alex

Reputation: 11147

create animation by scaling part of an image

i would like to launch an animation that scales an image partially.

For example i have a ccsprite with a flower and when i touch that flower, i would like to create an animation when only its routs contract.

This could be done by creating an animation frame-by-frame (which takes much more time to be crated by the designer), but i was thinking about setting scale for a certain part of the image and animating it.

Upvotes: 0

Views: 54

Answers (1)

touti
touti

Reputation: 1164

you can use cocos2d effects to move part of a sprite
try to use Grid3D i think that is what you want
check out the documentation

Upvotes: 1

Related Questions