I'm doing a college project where I need to make a game for Android using a Java framework, and for now all I have to do is make the splashscreen for the game like described in the title/question, but I didn't even manage to make the texture (png file) scale to fit the screen. So, how can I make a simple splashscreen that goes through some images after a set delay or input before going to the main menu?
float delay = 1; // seconds
Timer.schedule(new Task(){
@Override
public void run() {
// Do your work
}
}, delay);
The above code helps you delay the execution, and after that delay you can perform the action you want.
Here, Inside the run method you can switch to any screen and ofcourse you can use this function as many times as you want.
batch.draw(texture,0,0,Gdx.graphics.getWidth(),Gdx.graphics.getHeight());