Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on a racing game which will have a top view from the back camera. The image below displays a similar example. I am confused about how to achieve the movement of the road if parallax scrolling is used. The road gets narrow as we move forward whereas it is broader closer to the camera. Should I focus on parallax scrolling to achieve this or is there some other technique to work with such games?

p.s. I'm using cocos2d-x as the gaming engine.

enter image description here

share|improve this question

marked as duplicate by John McDonald, Sean Middleditch, bummzack, Byte56 Sep 27 '13 at 18:31

This question was marked as an exact duplicate of an existing question.

Thanks for pointing me to some similar queries..I can't add comment there (don't have as many points)..Is it possible to achieve this with a 2d engine like seems that the perspective thing works in 3 dimensions? any more help? – Haider Sep 25 '13 at 19:19