Can I do this with the button command to test the state of six buttons?
TMart
Posts: 2
· DO
··· BUTTON 0,1,255,255,Workspace,1,Pressed
··· BUTTON 1,1,255,255,Workspace,1,Pressed
··· BUTTON 2,1,255,255,Workspace,1,Pressed
··· BUTTON 3,1,255,255,Workspace,1,Pressed
··· BUTTON 4,1,255,255,Workspace,1,Pressed
··· BUTTON 5,1,255,255,Workspace,1,Pressed
· LOOP
I want to test six buttons on a game, and they will stay "on" "1" after pressed while the program looks for others also pressed as the game moves on.
thanks
Ted - BeverageNJ@aol.com
··· BUTTON 0,1,255,255,Workspace,1,Pressed
··· BUTTON 1,1,255,255,Workspace,1,Pressed
··· BUTTON 2,1,255,255,Workspace,1,Pressed
··· BUTTON 3,1,255,255,Workspace,1,Pressed
··· BUTTON 4,1,255,255,Workspace,1,Pressed
··· BUTTON 5,1,255,255,Workspace,1,Pressed
· LOOP
I want to test six buttons on a game, and they will stay "on" "1" after pressed while the program looks for others also pressed as the game moves on.
thanks
Ted - BeverageNJ@aol.com
Comments
·· An initial problem you're going to have with this is that you're trying to use the same workspace variable for all buttons.· This will adversely affect the button command.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 9/6/2005 3:25:55 PM GMT
http://www.parallax.com/dl/docs/books/sw/exp/sw15.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
www.emesys.com/BS2fsm.htm#Game%20show
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I changed the workspace element into workspace0, worspace1, etc. . . .
Is that a good way to go about it.
I also appreciate the other responses and am studying them to understand what they are doing, so I can grasp the concepts outlines.
God bless
Ted
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
·· While I was pointing out there error in your BUTTON setup, Jon and Tracy are correct.· You're better off with their suggestions.· Better to take their advice.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com