Looping Procedure's
Author |
Message |
Dazzle
|
Posted: Fri Feb 22, 2013 9:45 am Post subject: Looping Procedure's |
|
|
What is it you are trying to achieve?
im trying to loop procedures if its possible
What is the problem you are having?
it wont work
Describe what you have tried to solve this problem
ive searched for a while but couldent find anything
Turing: |
%Title Screen
procedure menu
var plae := GUI.CreateButton (240, 31, 0, "Insane", GameInsane )
var plan := GUI.CreateButton (240, 69, 0, "Hard ", GameHard )
var plah := GUI.CreateButton (240, 107, 0, "Normal", GameNormal )
var plai := GUI.CreateButton (240, 145, 0, "Easy ", GameEasy )
Draw.Text ("Number Guess", 120, 517, font4, red)
Draw.Text ("Your Easy HighScore is:", 325, 9, font5, black)
Draw.Text ("Your Normal HighScore is:", 325, 34, font5, black)
Draw.Text ("Your Hard HighScore is:", 325, 60, font5, black)
Draw.Text ("Your Insane HighScore is:", 325, 87, font5, black)
end menu
menu
loop
exit when GUI.ProcessEvent
end loop
loop
exit when play_agan = "no"
menu
end loop
|
Please specify what version of Turing you are using
4.0.3 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Fri Feb 22, 2013 3:13 pm Post subject: RE:Looping Procedure\'s |
|
|
It's no clear what you are asking, but...
code: |
loop
exit when GUI.ProcessEvent
end loop
|
when will this loop exit, so that your next loop can start? |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
|
|