'Invalid Image Handle'

Blitz3D Forums/Blitz3D Beginners Area/'Invalid Image Handle'

Any idea why I'm getting this error for this code?

A .bmp called 'player' is clearly in the BlitzPlus folder.

-----
Global gfxplayer

Graphics 640,480,16

SetBuffer BackBuffer()

gfxplayer=LoadImage("player.bmp")

While Not KeyHit(1)
Cls
DrawImage gfxplayer,MouseX(),MouseY()
Flip
Wend

The file should be in the same place as you have saved your source file.

Cheers, skidracer. Pretty obvious now I come to think of it. :embarrassed: