If you wanting a loading screen in your game whilst things load, you'd be best to think out a structure for your game. Perhaps having a mode variable. Then the main loop could be like so:
That way, whenever you want something to happen, just set the mode variable to say 0 for the loading screen to appear, or if you finish level 1, set mode to 2. A bit simplified, but it's always good to plan it out a little. Makes it alot easier to keep track of and debug.
While Not KeyHit(1) If mode = 0 then loading_screen() ElseIf mode = 1 then level1() ElseIf mode = 2 then level2() ElseIf mode = 3 then game_over_screen() ElseIf mode = 4 then high_score_screen() End If Wend End
That way, whenever you want something to happen, just set the mode variable to say 0 for the loading screen to appear, or if you finish level 1, set mode to 2. A bit simplified, but it's always good to plan it out a little. Makes it alot easier to keep track of and debug.