I'm writing a game that needs to do a heavy initializing routine before every level. Now it would be nice to show some "please wait..." message to the user so that he knows that the program hasn't crashed.

Surprisingly that was quite problematic thing to implement. As Display.setCurrent() doesn't necessarily have immediate effect this following code doesn't seem to work:


The result is the same as if the first setCurrent() function wasn't called at all.

Can anyone give me a simple example how I could show a message screen while the program is loading something?

Thank you.