Well im trying to learn BASIC again. Havent used it in awhile and pretty much forgot it all. Doing this tutorial, and im stuck. Here's my code:
do
if Button(240,200,"New Game")=1 then goto New_Game
endif
Button(240,250,"Load Game")
if Button(240,300,"Exit")=1 then end
endif
LOOP
New_Game:
cls
Text 240,220,"Get Ready to play!";
wait 2000
function Button(x1,y1,words$)
pressed=0
x2=text width(words$)
y2=text height(words$)/2
if mousex()>x1 and mousex()<x1+x2
if mousey()>y1-y2 and mousey()<y1+y2
Pressed=1
endif
endif
if pressed=1 then ink rgb(255,0,0),0 else ink rgb(255,255,255),0
if pressed=1
Pressed=Mouseclick()
else
pressed = 0
endif
text x1,y1,words$
ENDFUNCTION
in line 2
Quote: "if Button(240,200,"New Game")=1 then goto New_Game"
When i click compile and run the line is highlighted and the code doesnt continue. Im sure it means its an error, but i have no clue whats wrong with it.
Thanks in advance.
Who you chose to be around you, lets you know who you are.