I know Im not pro, or Even Moderate , as a matter of fact, I'm [Age Removed By Monocoder). After Taking a summer
course on DB I purchased DBpro and i just started, The Commands are diffrent so that's disheartening.
REM Project: Seccond D Game
REM Created: 2/16/2008 8:32:51 PM
REM
REM ***** Main Loop *****
REM
REM LOAD BITMAP 1
Load Bitmap "Penguin.bmp"
REM IMAGE GETTING 1
get image 1, 0, 0, 23, 23
get image 2, 27, 0, 46, 23
get image 3, 47, 0, 69, 23
get image 4, 72, 0, 92, 23
get image 5, 97, 0, 115, 23
get image 6, 120, 0, 143, 23
REM LOAD BITMAP 2
load Bitmap "N1.bmp",
load Bitmap "N2.bmp", 8
load Bitmap "N3.bmp", 9
load Bitmap "N4.bmp", 10
load Bitmap "N5.bmp", 11
load Bitmap "N6.bmp", 12
load Bitmap "N7.bmp", 13
load Bitmap "N8.bmp", 14
load Bitmap "N9.bmp", 15
REM VARIABLES
SpriteFacing = 1
X = 100
y = 100
pwalk = 1
nwalk = 7
REM MAIN LOOP
do
REM SPRITES
sprite 1 , x, y, pwalk
sprite 2, xt, yt, nwalk
size sprite 2, 43, 43
REM LEFT WALK AND MIRROR
if leftkey() = 1
dec X, 5
dec Xt, 5
inc pwalk
inc nwalk
wait 2
endif
if leftkey() = 1 and Spritefacing = 1
mirror Sprite 1
mirror Sprite 2
spritefacing = 2
endif
REM RightWalk and Mirror
if Rightkey() = 1
inc X, 5
inc Xt, 5
inc pwalk
inc nwalk
wait 2
endif
if Rightkey() = 1 and Spritefacing = 2
mirror sprite 1
mirror sprite 2
spritefacing = 1
endif
REM REVERT
if pwalk > 6
pwalk = 1
endif
if nwalk > 15
nwalk= 7
endif
loop
It said Run Error 501 - Illegal Image Number at line 42
Quote: "sprite 2, xt, yt, nwalk"
Help?