
-----------------------------------
Shockdot
Sun Dec 21, 2008 10:54 am

Button Errors
-----------------------------------
Hello, i am new to Turing and to this website...
I am having some problems with what i beleive to be a loop error...
Well i will tell you what happens.

My game is a quiz.
The main menu of my quiz has 4 buttons that i created... Well images with the area around the words as a button. Anyways.
I set them all to the right positions and everything with the code below i set the exit when blablablabla command and everything.
But when i play the game it takes several somtimes over 50 clicks for the button to work... I think it is a problem with my loop or possibily my images are lagging somthing up i don?t know i tryed everything so any help would be greattt....

this is the code i used for the buttons

%Here are the variables for the buttons section
var x:int
var y:int
var button:int
var choice:string :=""
loop
Mouse.Where (x, y, button)
if x=> # and x# and y # and x# and y # and x# and y # and x# and y