This gives only black screen to me, and after key "q" (quit command) it says "Runtime Error 506 - Could not load image at line 5".
And, im 99 % sure, that i have those images in right directory.
HIDE MOUSE: SYNC ON:SYNC RATE 0
CLS
LOAD BITMAP "background.bmp"
LOAD IMAGE "human.bmp",1,1
SPRITE 1,170,90,1
SET SPRITE 1,1,1
REPEAT
SYNC
UNTIL INKEY$()="q"
END
"ps: background is spelt wrong in your source, does the file realy have that name?"
They are not really background.bmp and human.bmp (in my project they are t1.bmp and s1.bmp, I just call them those because it will be lot of easier understant code if sprites (images) have good names. So, don't worry, Im sure that file names are not the problem.
........
But, can someone (please!) help me whit this problem. I just need a working example code. I have spend lot of time compiling codes what don't work correct and I don't know anymore what is wrong. Even some tutorials code didn't work... don't know why.
EDIT:
Example, it gives black screen to me. No errors.
'-----------------------------------
'Beginner's Guide To DarkBASIC Game Programming
'Copyright (C)2002 Jonathan S. Harbour and Joshua R. Smith
'Chapter 11 - TransSprite Program
'-----------------------------------
'Initialize the program
HIDE MOUSE
CLS
'Load background bitmap
LOAD BITMAP "background.bmp", 0 *** background.bmp***
'Load the source bitmap file
LOAD BITMAP "F15.bmp", 1 *** human.bmp ***
'Grab image 1 from bitmap
GET IMAGE 1,0,0,300,300
'Draw the sprite
SPRITE 1,170,90,1
'Wait for keypress
WAIT KEY
END
DBP43V3R