3
\$\begingroup\$

I am new to game development and AndEngine. I have small query about racing game. I am going to develop a bike racing game. For bike racing game we will move the background or the player. I am tried with andengine autoparallax background. But I didn't got the correct answer.

I need to do a background like these screenshots in SpeedMoto.

Can anyone help me to set the background.

\$\endgroup\$
3
  • 1
    \$\begingroup\$ So what's the question exactly? \$\endgroup\$ Commented Nov 10, 2012 at 10:14
  • \$\begingroup\$ I guess a common approach on such a game would be move only the background while your player stay at the center of the screen. \$\endgroup\$
    – nathan
    Commented Nov 10, 2012 at 10:42
  • \$\begingroup\$ my question is how to move the background simultaneously \$\endgroup\$
    – Nathiya
    Commented Nov 10, 2012 at 11:44

1 Answer 1

1
\$\begingroup\$

You can set the camera to chase the Sprite object which is, in your case, the car.

mCamera.setChaseEntity(entity);

note that you will need to bigger background or zoom the camera.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .