Sprite commands always display in front of drawing commands
Quote: "lines appear above all other drawing except the Print command"."
That means if you was to draw other things or print something that utilizes the AGKS drawing, the box will appear over the top of it
for example
function createBox()
Render()
DrawBox( 0, 0, xMax, 5, MakeColor(255,255,255), MakeColor(255,255,255), MakeColor(255,255,255), MakeColor(255,255,255), 1 )
Swap()
img = getimage(0,0,25,768)
sync()
endfunction img
will draw a box on top of any print commands and it wont draw the sprite. If you want to draw the sprite you would add the
command drawsprite(id) but any sprite above your drawing location that is still visible will still be shown in front of the draw commands.
If you no longer want the sprite visible you should set the sprites visibility to 0. By drawing the sprite to the image then drawing the box
then setSpriteVisibility(id,0) might give the effect. Or you could grab an image and make that a sprite and use the set sprite depth command
sorry but that's the way it works not sure why but I have found it much better this way.
fubar