I'm developing a platform-style game using Box2d and Cocos2d and having trouble figure out how to scoll the physical world.
Each game level spans multiple screens. I use a tile map to display the static objects on the map (ground, hills, etc). My Box2d world used edge shapes to outline the tiles.
When the screen scrolls to the right, I can move the tiles but I don't understand how to move the edge shapes. The edge shapes actually shouldn't move, because they are static and their positions in the world never change. But, how do I change my view into the Box2d world so that the edge shapes follow the tiles as the screen scrolls?
Thanks!
Each game level spans multiple screens. I use a tile map to display the static objects on the map (ground, hills, etc). My Box2d world used edge shapes to outline the tiles.
When the screen scrolls to the right, I can move the tiles but I don't understand how to move the edge shapes. The edge shapes actually shouldn't move, because they are static and their positions in the world never change. But, how do I change my view into the Box2d world so that the edge shapes follow the tiles as the screen scrolls?
Thanks!