I’m making this game with complex visual effects (some rendered lighting using bitmaps), so it takes about 1 second or so generating a level with 3 big lights, so it may take a little more using more lights.
The map is built when the player clicks to play the level. The thing is I can’t show him the game is busy processing the level elements, because the graphic elements won’t refresh until the start level function returns, which would make some sort of info sign while the map is loading useless.
How would I make it so this information is visible right after I click Start level and disappear as soon as the level is built? I’m assuming the event handler from clicking Start level has to return before the level starts loading, but how can I schedule the game for loading? some sort of a timer?