i am trying to go to a new screen when i click on something for my first program.It will be a shotokan karate guide.i would appreciate the help
Here is my code so far....
Rem My first Program
Rem Author : Troy Brown
Set display mode 640,480,32
rem Load a bitmap onto the screen
LOAD BITMAP \"tiger.bmp\"
set current bitmap 0
Text 310,240, \"Loading\"
Wait 1000
Text 310,240, \"Loading.\"
Wait 1000
Text 310,240, \"Loading..\"
Wait 1000
Text 310,240, \"Loading...\"
Wait 1000
Text 310,240, \"Loading....\"
Wait 1000
Cls
Goto Intro
Intro:
rem Load a bitmap onto the screen
LOAD BITMAP \"tiger2.bmp\"
Print \"Press Enter To Continue.\"
do
if returnkey()=1 then goto start
loop
start:
rem Load a bitmap onto the screen
LOAD BITMAP \"background.bmp\"
LOAD MUSIC \"Vampiredance.mp3\", 1
PLAY MUSIC 1
main_menu:
ink rgb(255,255,255),0
text 20,120,\"Who Created Shotokan?\"
text 20,160,\"Dojo Kun\"
text 20,200,\"Katas \"
text 20,240,\"Demos And Performances\"
text 20,280,\"Exit To Windows\"
repeat
Rem Who Created Shotokan
if (((mousex() >= 10) and (mousex() <= 100)) and ((mousey() >= 110) and (mousey() <=130))) then ink rgb(255,255,0),0 : text 20,120,\"Who Created Shotokan?\"
if (((mousex() < 10) or (mousex() > 100)) or ((mousey() < 110) or (mousey() >130))) then ink rgb(red,511,0),0 : text 20,120,\"Who Created Shotokan?\"
if ((((mousex() >= 10) and (mousex() <= 100)) and ((mousey() >= 110) and (mousey() <=130))) and (mouseclick()=1)) then end
Rem Dojo Kun
if (((mousex() >= 10) and (mousex() <= 100)) and ((mousey() >= 150) and (mousey() <=170))) then ink rgb(255,255,0),0 : text 20,160,\"Dojo Kun\"
if (((mousex() < 10) or (mousex() > 100)) or ((mousey() < 150) or (mousey() >170))) then ink rgb(red,511,0),0 : text 20,160,\"Dojo Kun\"
if ((((mousex() >= 10) and (mousex() <= 100)) and ((mousey() >= 150) and (mousey() <=170))) and (mouseclick()=1)) then end
do
if left click()=1 then Dojo Kun
loop
Dojo Kun:
Print \"New Screen\"
Rem Katas
if (((mousex() >= 10) and (mousex() <= 100)) and ((mousey() >= 190) and (mousey() <=210))) then ink rgb(255,255,0),0 : text 20,200,\"Katas\"
if (((mousex() < 10) or (mousex() > 100)) or ((mousey() < 190) or (mousey() >210))) then ink rgb(red,511,05),0 : text 20,200,\"Katas\"
if ((((mousex() >= 10) and (mousex() <= 100)) and ((mousey() >= 190) and (mousey() <=210))) and (mouseclick()=1)) then end
Rem Demos And Performances
if (((mousex() >= 10) and (mousex() <= 100)) and ((mousey() >= 230) and (mousey() <=250))) then ink rgb(255,255,0),0 : text 20,240,\"Demos And Performances\"
if (((mousex() < 10) or (mousex() > 100)) or ((mousey() < 230) or (mousey() >250))) then ink rgb(red,511,0),0 : text 20,240,\"Demos And Performances\"
if ((((mousex() >= 10) and (mousex() <= 100)) and ((mousey() >= 230) and (mousey() <=250))) and (mouseclick()=1)) then end
Rem Exit Windows
if (((mousex() >= 10) and (mousex() <= 100)) and ((mousey() >= 270) and (mousey() <=290))) then ink rgb(255,255,0),0 : text 20,280,\"Exit To Windows\"
if (((mousex() < 10) or (mousex() > 100)) or ((mousey() < 270) or (mousey() >290))) then ink rgb(red,511,0),0 : text 20,280,\"Exit To Windows\"
if ((((mousex() >= 10) and (mousex() <= 100)) and ((mousey() >= 270) and (mousey() <=290))) and (mouseclick()=1)) then end
until false
When there is a will.....theres a way!!!