
-----------------------------------
bitbyamonkey
Tue Jun 14, 2011 9:22 am

Need help with loops!
-----------------------------------
i am trying to make an eyespy game in turing. i have to make it so when you miss the correct itme it loops you baCK to the beginning. How can i do this?
var backG1 : int := Pic.FileNew ("titlee.bmp")
var backG2 : int := Pic.FileNew ("FirstFind.bmp")
var backG3 : int := Pic.FileNew ("SecondFind.bmp")
var xMouse, yMouse, buttonStatus, x2Mouse, y2Mouse, button2Status, x3Mouse, y3Mouse, button3Status : int

%Main Method
loop
    cls
    Pic.Draw (backG1, 0, 0, picMerge)
    Music.PlayFileReturn ("Europe - The Final Countdown.mp3")
    loop
        mousewhere (xMouse, yMouse, buttonStatus)
        exit when xMouse >= 0 and xMouse = 0 and yMouse  130 and x2Mouse < 175 and y2Mouse > 70 and y2Mouse < 100 and button2Status = 1
end loop

cls
Pic.Draw (backG3, 0, 0, picMerge)
loop
    mousewhere (x3Mouse, y3Mouse, button3Status)
    exit when x3Mouse > 300 and x3Mouse < 901 and y3Mouse > 300 and y3Mouse 