force a draw update

Monkey Forums/Monkey Programming/force a draw update

smilertoo(Posted 2012) [#1]
Hi,

Is there any way to force an onRender screen update (from the onCreate section)? so i can implement a loading screen on wp7.
I tried using a gamestate system with a preloader state but im getting a long black delay then a flash of my loading screen before the main app runs. xna forums suggest i have to force a screen draw to display my loading screen while im still in the initialisation/onCreate stage.


MikeHart(Posted 2012) [#2]
No, but you can load your resources in the onUpdate event too.


smilertoo(Posted 2012) [#3]
That's what i've been trying, still getting long black pause then quick flash of loading screen.


Raz(Posted 2012) [#4]
What if you were to get the OnUpdate to load things on the second frame (not the first)?


smilertoo(Posted 2012) [#5]
i'll try adding a flag to skip first frame then load.


benmc(Posted 2012) [#6]
I'm pretty sure everyone goes through this on their first game with Monkey.

I think we should make a banana illustrating the loading process by skipping OnCreate and moving asset loading into OnUpdate after an initial frame is displayed showing the loading screen first.