I am developing an endless horizontal scrolling iPhone-game using cocos2d and box2d.
My hero has to jump over obstacles (kinematic box2d bodys) which are added on the same layer as my hero-sprite.
My problem is the different speed of the parallaxe background and the obstacles. It dosent look like they are connected. I cant find an solution to solve this problem.
I have tried to find the same speed … but no luck.
The bet would be to add the obstacles as child to the parallaxe layer but it dosent work.
Thank you
sultan (sorry for the bad english)
Create one separate CCLayer class for moving object with box2D and add that layer to your parallaxlayer.
Here is one of my cocos2D, parallax based game: SUBVERSION SOURCE LINK