Loading Bar?

Blitz3D Forums/Blitz3D Beginners Area/Loading Bar?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Or try something like this:

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


now you can insert some calls to this function between the loading steps, eg:

load_progress(20)
;load meshes...
load_progress(40)
; load sounds etc.
load_progress(60)
; initialize network
load_progress(80)
; initialize player
load_progress(100)
; start main game loop