So i am making a time based game so i need for the timer bar to go up
I have a white background that is the full length to the Green color Image
This is the Image class btw
http://libgdx.l33tlabs.org/docs/api/com/badlogic/gdx/scenes/scene2d/ui/Image.html
In the screen render function i use
public void render(float delta) {
j += delta; // j declared globally
Timer.setWidth(j);
Gdx.gl.glClearColor(0,0,0,1);
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
stage.act(delta);
batch.begin();
stage.draw();
batch.end();
}
It only updates ones and the stays like that even though i have confirmation the width is change i.e system.print
I am kinda lost ???
Searched everywhere
I dont need the code, just a point in the right direction