How to Load Resources when...

BlitzPlus Forums/BlitzPlus Beginners Area/How to Load Resources when...

see the B+ help for:

CreateProgBar

Note that this is a windows/GUI object.. so for games it might be less suitable if you want fancy gfx.

If you need a graphical one, I'm a bit busy this week, first try it yourself. But think along the lines of:

Function CreateDeluxeProgressbar(x,y,width,height,borderimage, barimage, maxvalue)


Function DeluxeProgressbarSetvalue(bank,value)

Function DeluxeProgressbarGetvalue(bank,value)

Function UpdateDeluxeProgressbar(bank)

Function FreeDeluxeProgressbar(bank)


eventually you can use it like this:


MyProgBar=CreateDeluxeProgressbar(0,0,128,32,img1,img2,100)

; mainloop
; exit mainprogram-loop
FreeDeluxeProgressbar MyProgbar
End


See the bank-tutorials in "B+ tutorials" on how to work with banks.

I'm not sure on how it would work in practice, it's all very GUI-aimed .. anyway..

anyway, gotta go ^_^