title: Moving Camera in 'AndEngine' Game for Android
body: <p>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. <a href="https://market.android.com/details?id=com.infraredpixel.drop&amp;hl=en" rel="nofollow">https://market.android.com/details?id=com.infraredpixel.drop&amp;hl=en</a>)</p>
  
  <p>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</p>
  
  <pre><code>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);
  
              }
  </code></pre>