I want to move background with player location in ios . I have implemented the infinite parallax background by using the CCParallax class but i don't need it. I want to do something similar to this game http://www.youtube.com/watch?v=fNRNlLzrKmc.

my game level is large want to parallax up when player will move up. How will i do that please explain me. will i have to use CCCamera or i can do this by using CCParallax class.



Your example shows parallax movement, it's just in two dimensions. Commonly parallax movement is only displayed for the X axis.

You simply need to extend your existing parallax code to apply to the Y axis in addition to the X axis.

| improve this answer | |
  • \$\begingroup\$ Thanks for reply Yes i will apply it for Y axis but my parallax is working infinitely but in my given example have you seen it is moving with the player location how will do this. \$\endgroup\$ – jubin Oct 10 '13 at 2:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.