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 7084291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:17:00+00:00 2026-05-28T07:17:00+00:00

Im developing a game for Android using AndEngine. As of now, I want to

  • 0

Im developing a game for Android using AndEngine. As of now, I want to move the camera vertically in my game. You can imagine the scenario that to similar of the “Drop” game available in Android Market, where the camera is constantly moving down and you use the accelerometer to keep the ball in the scene as long as you can. https://market.android.com/details?id=com.infraredpixel.drop&hl=en)

However I haven’t been able to achieve much success here. I want to move the camera down constantly regardless of the position of the ball (i.e camera ChaseEntity() will not work).
Your help will be appreciated. Im using the GLES2 version of AndEngine

private static final int CAMERA_WIDTH = 720;
private static final int CAMERA_HEIGHT = 480;
private Camera mCamera;


public Engine onLoadEngine() {

            this.mCamera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);

            return new Engine(new EngineOptions(true, ScreenOrientation.LANDSCAPE,new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), this.mCamera));

    }

protected void onManagedUpdate(final float pSecondsElapsed) {

                    //Move camera down 
                    super.onManagedUpdate(pSecondsElapsed);

            }
  • 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-05-28T07:17:01+00:00Added an answer on May 28, 2026 at 7:17 am

    There’s an easier method that AndEngine provides, without needing to override onManagedUpdate.

    I suggest you to use a SmoothCamera. Using a smooth camera, you can set the maximum velocity for the camera to move at, then ask it to move somewhere. It will then automatically move at the maximum velocity you set toward the position you asked. Just set the Y velocity then move to some Y value and watch as it slowly (Or fast, depending on your velocity) moves toward the position automatically.

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

Sidebar

Related Questions

I'm developing 2D Side scroll Android Game, using AndEngine and its BOX2D extension. I
I am currently developing an Android game that is similar to a classic arcade
I am developing an android game application,I have implemented all the screens.Now i want
I am developing a game in j2me and android . In android using andengine
I'm developing chess game for Android ( androidchess.appspot.com ). If I want to add
I am developing a 2D game for android using lots of sprites. I am
I'm developing an Android game that has to download some assets to the SD
I'm developing a simple game in Android and I want to detect a collision
I'm developing a crime themed android game that will have a high maturity rating
I am new to android and developing a small game based on AndEngine (www.andengine.org).

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.