I starting to make a text game with some temporary music from other games, tested my game so far, then took a break and when I came back to test my game again and it said:
"Could not close nest at line 106"
After a lot of problem searching I decided to delete the Options section but then it said that they could not close nest at the last line of the code, this remained for EVERY line of the code, I even restarted the project with copy and paste in case it was corrupt but the problem still remained!
Here's the code:
Goto Setup
Setup:
Load Music "Isaac-Greed.mp3",1
Load Image "Title1.png",1,0
Load Image "Static.png",2,0
SM$="ON"
Goto Intro
Intro:
Cls
Play music 1
If SM$
Wait 1000*3
Ink RGB(255,255,255),RGB(0,0,0)
Center Text 320,172,"Jack Ellis Presents..."
Wait 750*3
Center Text 320,192,"Greed"
Wait 1000*4
Cls RGB(255,255,255)
Ink RGB(0,0,0),RGB(255,255,255)
Paste Image 1,95,20,1
Print "OUT OF ORDER"
Print "2 = Options"
T=0
Do
T=T+1
Rem If scancode()=2 then goto Start
If scancode()=3 then goto Options
If T=300000 then goto Intro3
Loop
Intro2:
Play Music 1
Cls RGB(255,255,255)
Ink RGB(0,0,0),RGB(255,255,255)
Paste Image 1,95,20,1
Print "OUT OF ORDER"
Print "2 = Options"
Do
Rem If scancode()=2 then goto Start
If scancode()=3 then goto Options
Loop
Intro3:
Cls
Center Text 320,182,"brINg ThEM thE $&@%"
Wait 1000*8
Cls
Stop Music 1
Center Text 320,182,"ERROR, 3RROR, 3RR@R..."
Wait 1000*2
Paste Image 2,0,0,0
Wait 1000*5
Goto Intro
Secret1:
Cls
If SM$="ON" then SM$="OFF"
Print " OPTIONS"
Print ""
Print "Press 1 to EXIT"
Print "Press 2 to TOGGLE the Waiting Screen at the Title. CURRENT STATUS: ",SM$
Print ""
Print "Waiting screen is now off!"
Wait 750*2
Goto Options
Secret2:
Cls
If SM$="OFF" then SM$="ON"
Print " OPTIONS"
Print ""
Print "Press 1 to EXIT"
Print "Press 2 to TOGGLE the Waiting Screen at the Title. CURRENT STATUS: ",SM$
Print ""
Print "Waiting screen is now on!"
Wait 750*2
Goto Options
Options:
Cls
Stop Music 1
Ink RGB(255,255,255),RGB(0,0,0)
Print " OPTIONS"
Print ""
Print "Press 1 to EXIT"
Print "Press 2 to TOGGLE the Waiting Screen at the Title. CURRENT STATUS: ",SM$
Wait 250*2
do
if scancode()=2 then goto Intro
if scancode()=3 and SM$="ON" then goto Secret1
if scancode()=3 and SM$="OFF" then goto Secret2
loop
Feel free to hate me if I've made an obvious mistake and didn't notice it!
Jack the human