I'm getting a bit lost now.
I've managed to get the content loading, but how exactly do I count the files so it uses that in the percentage bar?
Here's the loading code I have, excuse the mess:
Percentage = 0
while Percentage < 100
if spacekey() then inc Percentage
` Draw the progress bar
Colour = rgb(50, 0, 0)
box 300, 293, 500, 309, Colour, Colour, Colour, Colour
Colour = rgb(20, 20, 20)
box 280, 100, 525, 550, Colour, Colour, Colour, Colour
Colour = rgb(0, 255, 0)
box 300, 293, 300 + (Percentage * 2), 309, Colour, Colour, Colour, Colour
` Remove the previous text
paste image 1, 300, 251, 0
` Draw our new text
center text screen width()/2,screen height()/2-70,"UNNAMED"
center text screen width()/2,screen height()/2-8,"LOADING"
center text screen width()/2,screen height()/2-50,"Made By Johan Rensenbrink"
center text screen width()/2,screen height()/2-28, str$(Percentage) + " %"
if percentage=5
center text screen width()/2,screen height()/2+50,"Loading Images..."
FireImg=3 : load image "images\fire.bmp",FireImg
CrossHairImg=2 : load image "images\crosshair.bmp",CrossHairImg
endif
if percentage>5
center text screen width()/2,screen height()/2+50,"Loading Images..."
endif
if percentage>30
center text screen width()/2,screen height()/2+70,"Images Loaded"
endif
if percentage=35
center text screen width()/2,screen height()/2+110,"Loading Sounds..."
GunFire=1 : load sound "sounds\gun\fire.wav",GunFire
GunClipIn=2 : load sound "sounds\gun\clipin.wav",GunClipIn
GunClipOut=3 : load sound "sounds\gun\clipout.wav",GunClipOut
GunEmpty=4 : load sound "sounds\gun\empty.wav",GunEmpty
ImpactSnd=5 : load 3dsound "sounds\impact.wav",ImpactSnd
DieSnd=6 : load sound "sounds\die.wav",DieSnd
endif
if percentage>35
center text screen width()/2,screen height()/2+110,"Loading Sounds..."
endif
if percentage>70
center text screen width()/2,screen height()/2+130,"Sounds Loaded"
endif
if percentage=75
center text screen width()/2,screen height()/2+170,"Loading Remaining Content..."
endif
speed#=0
radius# = 7.0
gravity# = -0.1
slope# = 0.5
ground = 1
jumptimer = 0
sprint = 1000
health = 100
ammo = 30
maxammo = 30
clips = 5
maxclips = 5
reload=0
third=0
time#=0
delay_fire=delay_fire_max
delay_reload=-1
delay_empty=delay_empty_max
if percentage>75
center text screen width()/2,screen height()/2+170,"Loading Remaining Content..."
endif
sync
endwhile