Hello,
I'm looking for a good example of zooming and panning like angry birds. I have a game using box2d, and read about using camera and scaleTo/By. I haven't found a solid answer on which is better. Does anyone have a good example? Thanks.
A fast, easy to use, free, and community supported 2D game engine
Hello,
I'm looking for a good example of zooming and panning like angry birds. I have a game using box2d, and read about using camera and scaleTo/By. I haven't found a solid answer on which is better. Does anyone have a good example? Thanks.
Neither is "better" its just personal preference/opinion. I think using the the camera is more efficient because you move one thing instead of lots of scaling and moving for each child.
I implemented this feature in AB rip off. Take a look at:
http://stackoverflow.com/questions/3940131/best-way-to-zoom-and-pan-a-2d-cocos2d-iphone-game
read the answer by Shohair.
You must log in to post.