Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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.

share|improve this question
1  
So what's the question exactly? –  Jonathan Hobbs Nov 10 '12 at 10:14
    
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. –  nathan Nov 10 '12 at 10:42
    
my question is how to move the background simultaneously –  Nathiya Nov 10 '12 at 11:44
add comment

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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