I am just trying to make my game character, which is a texture (ball), to jump up in the air and then return back down to the position that it started at when the screen is pressed. I was just wondering if someone could give me a code example or help me to do this with my current code which is below. I have basically just drawn the background and the ball texture and positioned the ball where I want it to start the jump. The ball texture is what I want to make jump straight up.

```
    public class MyGdxGame extends ApplicationAdapter {
    SpriteBatch batch;
    Texture background;
    Texture ball;

    @Override
    public void create () {
        batch = new SpriteBatch();
        background = new Texture("gamebackground.png");

        ball = new Texture("ball2.png");
        ball.setFilter(Texture.TextureFilter.Nearest, Texture.TextureFilter.Nearest);
    }

    @Override   
    public void render   () { 
        batch.begin();  
        float scaleFactor = 2.0f;   
        batch.draw(background, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight    ());
        batch.draw(ball, 80, 145, ball.getWidth() * scaleFactor, ball.getHeight() *     scaleFactor);
        batch.end();
    }

    @Override
    public void dispose () {
    }
}

```