Quantcast
Channel: Question and Answer » libgdx
Viewing all articles
Browse latest Browse all 434

Setting delay when switching from one screen to another in LibGdx

$
0
0

How can I add a delay when switching from one screen to another.

Example:Screen1 class extends Game class and screen2 implements Screen implementation.
Screen1 uses setScreen() method to switch to next screen Screen2

like:

setScreen( (Screen) new Screen2(this));

Now instead of setting Screen2 all of a sudden I want to set screen2 with a small delay or some transition or scaling effect,I don’t want to use any scene2d library.


Viewing all articles
Browse latest Browse all 434

Trending Articles