So, I\'ve been trying to fix this annoying problem for absolutely too long. Hopefully the solution is simple and I\'m just overlooking something. Anyway, I\'ve got some text being drawn, however, a sprite in a previous cycle is for some reason being drawn after it (being drawn over the text)... Now this is a problem since the sprite is a background...
background code
//Background
_IMAGES_LOAD_BACKGROUND:
load image \"media/images/MM_bg.png\" , 1002
sprite 1002 , 0 , 0 , 1002
return
Text setup code (plus the call of the sprite creation)
ink rgb(255,255,255),0
set text font \"Verdana\"
set text size 25
set text to bold
autocam off
gosub _IMAGES_LOAD_BACKGROUND
Save function (where text is being drawn)
function load_save( save as integer )
if save = 1
center text SystemSettings.WWidth / 2 , SystemSettings.WHeight - 50 , "Loaded Save 1"
endif
if save = 2
endif
if save = 3
endif
endfunction
A simplified version of how my program does its setup (the background sprite is drawn within the \"_SETTINGS_SYSTEM_SETUP\" sub)
case 0:
gosub _SETTINGS_SYSTEM_SETUP
gosub _IMAGES_SPLASH_SCREEN
gosub _FILES_LOAD_SAVES
core = 1
endcase
case 1:
gosub _IMAGES_CURSOR
load_save(SystemSettings.Loaded)
endcase
Now, I know you can set the priority of sprites, I\'ve tried doing so with the background sprite to no avail.