Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Button's using ButtonWait or whatnot
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
yumrum




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
i'm not sure




PostPosted: 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
yumrum




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: