Creating a Repeating Background/infinite Parallax Effect in Cocos2d
I’m working on an iPhone game and thought I’d share some code for a infinite parallax class I made. I’m aware of CCParallaxNode, I’ve named mine CCParallaxScrollNode and it greatly simplifies the task of creating a repeating background with parallax effects. It does all the dirty work for you, essentially. Here’s the info and link, and a sample project. Remember to change the Base SDK in the project settings to the latest you have.
CCParallaxScrollNode on GitHub
Download Sample Project