im making angry bird like game in cocos2d & box2d for Iphone, in which i need to zoom out my camera view as my thrown body goes out of screen and later on it should be zoom in as per normal position.(if u have played angry bird in mobiles i hope u got what im exactly stucked into) i’v tried to scale my whole layer but not worked as per need.can i use camera of cocos2d to achieve this?
im making angry bird like game in cocos2d & box2d for Iphone, in which
Share
You have to use scale factor.Camera will not zoom in and out, it will only move horizontally and vertically on your scene
Use scale factor in action to go give it animation effect as in angry birds
That should do it!