confused

BlitzMax Forums/BlitzMax Beginners Area/confused

drnmr(Posted 2005) [#1]
why does this not work

While Not KeyHit(key_escape)

sound=LoadSound("C:\Documents and Settings\-------\My Documents\Peabrain Files\Smiley\soundfx18.wav",True)
PlaySound sound

Global ship:TImage = LoadImage("C:\Documents And Settings\--------\My Documents\Peabrain Files\Smiley\smile man.bmp",filteredimage|dynamicimage)

HideMouse

Function DrawImage(image:TImage,x#,y#,frame=0) ship



If KeyHit(key_0)
Print "0"
EndIf

End
Wend


Duckstab[o](Posted 2005) [#2]
When testing setup for file loading it is always good to keep the media in a folder along with the file stop problems with finding media in huge database you could always change later


Try that

Graphics mode has to be set before loading any media or they are cleared from memory and will need to be reloaded


drnmr(Posted 2005) [#3]
thx