Computer Science Canada Need help i cant get this to work |
Author: | Eyy [ Sat Jun 12, 2010 11:55 am ] | ||
Post subject: | Need help i cant get this to work | ||
Ok so I have to create a program that simulates a car and a traffic light with 3 lights. I have to make a testing mode, where user can just click on and off for the buttons and the LED will light up, and i have to make a scenario mode, but thats not important right now. (I attached the turing program, and I am using version 4.05) Here's the problem, the homepage works fine, i run it and if i click anywhere but the Testing box it will say you didnt click on a box. Then if i click testing mode it goes to testing mode (with procedure). On testing mode clicking all the on/off button works fine. But heres my problem, the home button. If i click it, it brings me back to home, (but the way home is made in a procedure) for some reason when it redirects me to home, the program automatically goes to the procedure for testing mode, not the loop at the very bottom where it will let you pick testing mode again. Its kinda hard to explain, i tried shifting the codes and i worked for 2 hours on it but i cant get it to work properly. Would appreciate it if i could get some help thanks.! I cant attach for some reason so here's the code.
|
Author: | Cezna [ Sat Jun 12, 2010 1:58 pm ] |
Post subject: | RE:Need help i cant get this to work |
You attached it three times ![]() It doesn't recognize it if I click on scenario mode, and I don't understand the purpose of the lights and motor buttons. Is it supposed to make sound or something? If I go to test, then main, then scenario, it draws a grey circle between the buttons. Is this the problem you were reffering to? If I click where the on/off buttons were in testing, it changes between grey and green, and if I click around for the other buttons, the yellow, red and black lights appear. Clearly the problem is something to do with not clearing the screen properly. It may have something to do with the buttonwait. I never use it, instead I use Mouse.Where, so I don't know whether or not you are using it right, but I can't see what else it could be by looking through the code. |
Author: | Eyy [ Sat Jun 12, 2010 3:01 pm ] |
Post subject: | RE:Need help i cant get this to work |
Nothing is supposed to happen haha, just the lights are supposed to go on and off thats it, but the Home button is kind of messed up and i dont know how to fix it. Run program, click test, click Main menu, and theres the problem, the if statements for the test mode come up instead of the loop for to button to redirect to test mode again. :/ |