you could pop a delay 1 or flip and cls. Don't forget that without cls or flip your screen will appear static. This comes at a price though, because loading takes longer if you show it with a flip and delay.
Oh, and if you're going to do a progress bar then please, when it reaches 100%, it's done. Not still loading. i really hate that in games. You sit there waiting for it and when it gets to 100% (theoretically done), it still continues to load!
function loadgame()
showProgressBar(50,"loading people")
loadPeople()
showProgressBar(99,"Loading tanks")
loadTanks()
end function
function showProgressBar(perc,st$)
cls
drawrect 10,10,perc,10
drawtext st,10,22
flip
delay 1
end function
|