title: libGDX moving camera and an Image
body: <p>I currently have a game where there is a map that is 480x3200, and a person falling from the top. The camera follows the person, and there are platforms as the person falls. The platforms need to be touchable so I can rotate and move them during the game, so I made it an Image, when it was originally just a sprite. </p>
  
  <p>When I changed it from a sprite to an Image, everything worked fine, except when the person falls (the camera starts moving down and follows the person), the platform also moves with the camera, so it looks like it's also falling. The platform should just stay in one spot, and not be moving with the camera so as the camera keeps moving down, the platform will eventually disappear from view.</p>
  
  <p>Setting up the platform and adding it to the stage</p>
  
  <pre><code>@Override
  public void show() {
      ...
      platform = new Image(new Texture(Gdx.files.internal("img_platform.png")));
      platform.setX(2);
      platform.setY(110);
      platform.setOrigin(platform.getWidth() / 2, platform.getHeight() / 2);
  
  @Override
  public void render(float delta) {
      ....
      stage.addActor(platform);   
  }
  </code></pre>
  
  <p>I've looked around the API, and can't determine whether the camera, stage, or Image needs to be changed, or something else that I haven't thought of. Any ideas?</p>
  
  <p><strong>Edit:</strong></p>
  
  <pre><code>public WorldRenderer(FallDown game, SpriteBatch batch, World w) {
      this.cam = new OrthographicCamera(CAMERA_WIDTH, CAMERA_HEIGHT); 
      this.cam.position.set(CAMERA_WIDTH / 2, CAMERA_HEIGHT / 2, 0);
      this.cam.setToOrtho(false, CAMERA_WIDTH, CAMERA_HEIGHT);
      cam.position.set(CAMERA_WIDTH / 2, 105, 0);
      stage = new Stage(480, 800, true);
  
      platformTexture = new Image(new Texture(Gdx.files.internal("img_platform.png")));
      platformTexture.setX(2);
      platformTexture.setY(100);
      platformTexture.setOrigin(platformTexture.getWidth() / 2, platformTexture.getHeight() / 2);
      ...
  
  }
  
  public void render(float delta) { 
      stage.addActor(platformTexture);
      moveCamera();
      ...
  }
  
  private void moveCamera() {
      if (Person.getPosition().y &lt; cam.position.y) 
          cam.position.y = Person.getPosition().y;
      cam.update();
  }
  
  ...
  </code></pre>