Computer Science Canada Button's using ButtonWait or whatnot |
Author: | yumrum [ Tue Dec 22, 2009 6:28 pm ] |
Post subject: | Button's using ButtonWait or whatnot |
So this may Seem like a ridiculously easy question but... i need help on how to make a button but i don't want to use all the GUI we did it in class one time the way i wanna do it is using like button.wait and then it's like if button.wait is < and > then do this but i tried something kinda like that and it didn't work anyhelp would be greatly appriciated |
Author: | i'm not sure [ Tue Dec 22, 2009 9:45 pm ] |
Post subject: | Re: Button's using ButtonWait or whatnot |
Ok so here's how to make a button using buttonwait. the format for button wait is looks like this buttonwait ("down" ("down" for mouse click or use "up" if you want to know when your not clicking), x, y, (where your clicking), ButtonNumber, ButtonDown) ( i have no idea what those last two variables do, because i don't have turing help at home only at school so i can't check, i just know they have to be ints) the if statement goes like this if x > (left edge of button) and x < (right edge of button) and y > (bottom edge of button) and y < (top edge of button then) hope this helps |
Author: | yumrum [ Tue Dec 22, 2009 11:47 pm ] |
Post subject: | RE:Button\'s using ButtonWait or whatnot |
ya it does thanks alot Cause i was making my soccer game start menu but it was so not user friendly so i wanted to make buttons but completly forgot how exactly it goes |