@Override public void draw(Batch batch, float parentAlpha) { super.draw(batch, parentAlpha); stateTime += Gdx.graphics.getDeltaTime(); batch.draw( animation.getKeyFrame(stateTime, true), (screenRectangle.x - (screenRectangle.width * 0.1f)), screenRectangle.y, screenRectangle.width * 1.2f, screenRectangle.height * 1.1f); }