Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8822149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:01:59+00:00 2026-06-14T06:01:59+00:00

I just started using AndEngine, and it’s tough to find good tutorials / documentation.

  • 0

I just started using AndEngine, and it’s tough to find good tutorials / documentation.
I am making a 2D side-scroller game, where platforms and walls are generated randomly.
The user can control the player’s movement (jumping, walking forward).

I have a few general questions:

How do I get a parallax background to scroll only when the player moves?

Should I set the physics world gravity to nothing, and add the force of gravity to each individual object that actually needs it? I don’t want gravity to affect floating platforms/walls.

How do I animate a player when it moves (animated walking)?

What is the best way to go about collision detection (player/enemy, player/wall/platform, etc.)?

Sorry, that may have been a lot to ask at once.
Any help is appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T06:02:01+00:00Added an answer on June 14, 2026 at 6:02 am

    How do I get a parallax background to scroll only when the player moves?

    I have never used parallax backgrounds, but I guess that the background moves as the camera moves. If the player doesn’t move, the camera shouldn’t move so the background won’t move either.

    Should I set the physics world gravity to nothing, and add the force of gravity to each individual object that actually needs it? I don’t want gravity to affect floating platforms/walls.

    No, use the gravity. When creating bodies that should be unaffected by forces (Thus immovable) you use the BodyType.StaticBody option. Static bodies can not be moved (Only by code).

    How do I animate a player when it moves (animated walking)?

    Take a look in the AnimatedSpritesExample. Basically, to animate a sprite it must be instantiated form the AnimatedSprite class and you need to supply it with a TiledTextureRegion (Contains several regions, each with a different image). Then, by calling the animate method of AnimatedSprite class you can start the animation.

    What is the best way to go about collision detection (player/enemy, player/wall/platform, etc.)?

    If you plan on using Box2D, you can implement a callback called ContactListener which will be called when bodies collide in your PhysicsWorld.

    If you don’t plan on using Box2D, you can use AndEngine’s methods for collision detection.
    Here is an example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started using Andengine, and after following some tutorials I'm starting to develope
Just started using this technique and am having strange results on the PC side.
I just started making a a new web project using GAE SDK without GWT
I just started using Twitter Bootstrap http://twitter.github.com/bootstrap/scaffolding.html and I'm looking for the grey/blue navbar
I just started using Eclipse but already I have a small problem. At first
I just started using rapidxml. I 1st create an xml file to read from.
I just started using Scala and Spec2. However, I'm a little bit confusing of
I just started using/learning Python and have some questions. I have a text file
I just started using mysqli API for PHP. Apparently, every time an object of
I just started using virtualenv, and it was working normally until yesterday. Now, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.