OK, we've got that out of the way
First, the Load Image at the top is set at 1000 and the sprite is using image 800. I take it that is not correct.
Second, in the
leave: subroutine, I noticed that when you press "n" the menu sprite would not re-appear so the user can select another option.
I'm also begining to suspect you may have confused Exit with Exitfunction in some places.
As I'm testing this in DBPro, Windowed mode doesn't work to well for me as you need to re-initailise the display in DBPro.
So after a little re-write (except the window mode), I hope this helps.
function menu()
`bringing up the menu, the text is palatino or something like it
load image "menu1.bmp",1000,1
set current bitmap 0
draw to front
sprite 1,0,0,1000
scale sprite 1,200
paste sprite 1,screen width()/4,screen height()/4
`loop for menu selections
do
`the exit game sequence
if escapekey() = 1 then gosub leave
`w for windowed mode
if keystate(17) = 1 then gosub windowed
`f1 to exit the menu
if keystate(59) = 1
gosub noMenu
exitfunction
endif
sync
loop
`subroutines for commands
leave:
hide sprite 1
center text screen width()/2, screen height()/2,"Do you wish to exit (y/n)?"
sync
do
`if a "y" is entered
if keystate(21) = 1 then end
`if a "n" was entered
if keystate(49) = 1
show sprite 1
return
endif
loop
return
windowed:
set window on
set window layout 1,1,1
set window position (screen width()/4),(screen height()/4)
set window title "Exile's Journey"
position mouse (screen width()/4),(screen height()/4)
hide mouse
return
noMenu:
hide sprite 1
delete sprite 1
delete image 1000
return
endfunction
...or at least point you in the right direction
Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.