How do you make those loading bar things that show how much is loaded? How do I make it so the bar increases a bit everytime something has finished loading(an image or a music file)?
-thanks
-thanks
Graphics 640, 480, 16, 2 SetBuffer BackBuffer() total = 100 Dim files(total) For i = 1 To total files(i) = CreateImage(320,320) ; Create or Load files/media Cls Text 320, 240, "Loading...", True, True Rect 240, 280, Float(i) / Float(total) * 160, 20, True Flip Next
DrawImage loading1, 100,100 img1 = LoadImage("img1.bmp") img2 = LoadImage("img2.bmp") Cls DrawImage loading2, 100, 100 img3 = LoadImage("img3.bmp") img4 = LoadImage("img4.bmp") Cls DrawImage loading3, 100,100
function load_progress(percent#) setbuffer frontbuffer() xrel#=graphicswidth()/640.0 yrel#=graphicsheight()/480.0 rect 0,(graphicsheight()/2.0)-(10.0*yrel) ,6.4*xrel#*percent, 20.0*yrel, 1 setbuffer backbuffer() end function