If you have any problems, I've attached a progress bar function.
It's quite old and doesn't use sprites though.
[Edit] I just checked the example demo in the attached zip and it's an old one with a couple of errors. Correct version below:
#Include "ProgBarFunc.dba"
Set Display Mode 800,600,16
Set Text Opaque
Sync On
Randomize Timer()
Rem Countdown Timer Example Function Style 0 (Std Horiz)
Center Text 400,0,"Countdown Timer Example Function Style 0 (Std Horiz)"
Seconds=5
Text 200,100,"Time"
Sync
Rem X Y Wid Hig Min Max Prog Bord Style R G B
Progressbar(240, 102, 200, 10, 0.0, 30.0, 30, 1, 0, 255,0,0)
T=Timer()
Repeat
Elapsed=(Timer()-T)/1000
TimeLeft=Seconds-Elapsed
Progressbar(240,102,200,10,0.0,30.0,TimeLeft,1,0,255,0,0)
Ink RGB(255,255,255),0
Text 450,100,Str$(TimeLeft)+" "
Sync
Until TimeLeft=0
Center Text 400,580,"Press Any Key For Next Example"
Suspend For Key
CLS
Rem Power Meter Example Function Style 1 (Percentage Horiz)
Center Text 400,0,"Power Meter Example Function Style 1 (Percentage Horiz)"
Set Cursor 100,400: Input " Required Percentage: ";Percentage
Text 190,100,"Power"
Sync
Rem X Y Wid Hig Min Max Progress% Bord Style R G B
Progressbar(240, 102, 200, 10, 0.0, 100.0,Percentage, 1, 1, 0,255,0)
Ink RGB(255,255,255),0
Text 450,100,Str$(Percentage)+"%"
Center Text 400,580,"Press Any Key For Next Example"
Suspend For Key
CLS
Rem Timer Example Function Style 2 (Std Vertical)
Center Text 400,0,"Timer Example Function Style 2 (Std Vertical)"
Seconds=30
Text 230,310,"Timer"
Sync
Rem X Y Wid Hig Min Max Progress Bord Style R G B
Progressbar(240, 102, 20, 200, 0.0, 100.0, 0, 1, 2, 100, 0, 255)
T=Timer()
Repeat
Elapsed=(Timer()-T)/1000
Progressbar(240,102,20,200,0.0,30.0,Elapsed,1,2,100,0,255)
Ink RGB(255,255,255),0
Text 242,80,Str$(Elapsed)
Sync
Until Elapsed=30
Center Text 400,580,"Press Any Key For Next Example"
Suspend For Key
CLS
Rem Timer Example Function Style 3 (Percentage Vertical)
Ink RGB(255,255,255),0
Center Text 400,0,"Timer Example Function Style 3 (Percentage Vertical)"
Energy=75
Ink RGB(255,255,255),0
Text 230,310,"Energy"
Text 242,80,Str$(Energy)
Ink RGB(255,0,255),0
Text 300,80,"Press A Key To Do Battle..."
Sync
Rem X Y Wid Hig Min Max Progress Bord Style R G B
Progressbar(240, 102, 20, 200, 0.0, 100.0, 75, 1, 2, 255, 255,0)
T=Timer()
Repeat
Suspend For Key
Hit=Rnd(3)
OldEnergy=Energy
If Hit=0
Ink RGB(0,255,0),0
Text 300,100,"He Misses! You Recover a Little Energy. "
Inc Energy,10
Endif
If Hit=1
Ink RGB(255,255,0),0
Text 300,100,"A Glancing Blow... "
Dec Energy,10
Endif
If Hit=2
Ink RGB(255,155,0),0
Text 300,100,"Ooh That Must Have Hurt! "
Dec Energy,20
Endif
If Hit=3
Ink RGB(255,0,0),0
Text 300,100,"Arrrgh! Bang On Target!! "
Dec Energy,30
Endif
If Energy<0 Then Energy=0
If Energy>100 Then Energy=100
Text 242,80,Str$(Energy)
If OldEnergy>Energy
For N=OldEnergy to Energy step-1
Progressbar(240,102,20,200,0.0,100.0,N,1,2,255,255,0)
Ink RGB(255,255,255),0
Text 242,80,Str$(N)
Sync
Next N
Else
For N=OldEnergy to Energy
Progressbar(240,102,20,200,0.0,100.0,N,1,2,255,255,0)
Ink RGB(255,255,255),0
Text 242,80,Str$(N)
Sync
Next N
Endif
Sleep 1000
Text 300,100," "
Until Energy<=0
Ink RGB(0,0,255),0
Text 300,100,"You died.... "
Ink RGB(255,255,255),0: Center Text 400,580,"Press Any Key To Exit Demo"
Suspend For Key
CLS
TDK_Man