Ok, I'm making a game called Civil Lockdown©, and was wondering if someone could help with this error... What's happening is that I have a main menu loop going, and when I change the screen resolution in Options, and press back, it errors saying "Image Does Not Exist At Line 14".... It's VERY weird.
`Disable Escape
disable escapekey
`Load All Necessary Images For The Main Menu
load image "medialogoscivillockdownlogo.tga",1
load image "mediabackgroundsmainbkgrnd.tga",2
`Main Menu Loop
Main_Menu:
do
cls
paste image 1,35,0 `<=======THIS IS THE PROBLEMATIC CODE LINE
if button(20,140,"Single Player")then gosub Single_Player
button(20,180,"Multiplayer")
button(20,220,"Free-Play")
if button(20,260,"Options")then gosub Options
if button(20,300,"Exit")then end
loop
`Single Player Menu Loop
Single_Player:
do
cls
button(20,140,"New Game")
button(20,180,"Load Game")
button(20,220,"Delete Existing Game")
if button(20,400,"Back")then return
loop
Multiplayer:
cls
Options:
do
cls
ink rgb(255,255,255),0
print current graphics card$()
print screen width(),screen height(),screen depth()
if button(20,140,"640 x 480 x 16")then set display mode 640,480,16
if button(20,180,"800 x 600 x 16")then set display mode 800,600,16
if button(20,400,"Back")then return
loop
EDIT: Is there a way to "unload" an image?
What can games do for you?
www.getixinteractive.com