Thanks, will take a look.
Another couple of things: I'm writing a very simple horizontal scrolling shoot-em-up as an intro exercise, using DOT commands to draw a multi-level star field, and LINE to draw "mountains" at the bottom of the playing field. The rest of the graphics are handled as sprites.
1) Sometimes, I need to get the first available element in an array from a given offset point. Normally I'd use something like this:
GetNextAvailable(nStartPoint)
nNext = nOffset+1
nFoundAt = 0
WHILE (nFoundAt < 1) AND (nNext <> nOffset)
IF aArray(nNext) = 0
nFoundAt = nNext
ENDIF
IF nNext < MAX_ARRAY_SIZE
nNext = 1
ELSE
INC nNext
ENDIF
ENDWHILE
However, whenever I use any kind of looping construct other than a FOR-NEXT loop, my background washes over blue - the sprites are still visible, but everything else is lost.
2) I create my sprites in PaintShop Pro and save in .BMP format. When they're displayed on screen, they often do not appear quite correctly - the images seem grainy, as if they are being re-sized badly, even though the dimensions used are the same as those specified in PSP - I've even tried using SIZE SPRITE to ensure the dimensions are correct, but the images still appear slightly corrupted on screen when my program is running.
Any clues?
"It's not the great who are strong - it's the strong who are great"