Computer Science Canada

Can someone please help me with my street lights program?

Author:  chees [ Sat Jan 07, 2006 4:51 pm ]
Post subject:  Can someone please help me with my street lights program?

Can someone please help me with my street lights program? The delays aren't working properly and are delaying the program at completally different times I set them to. And when I tell text to go to the screen, it won't come up visible until I tell the program to close. I think the problem is it is lagging. I attached the program to this message. Please somebody help me soon, as this is due monday. Thanx!

Author:  pavol [ Sat Jan 07, 2006 5:42 pm ]
Post subject: 

you set your screen to offscreenonly and this means that you'll have to put the View.Update in the right possition, after you use the put command. but i would recommend setting the screen to "nooffscreenonly"
for the time being when you put text to the screen and get input from the user. and then reset it to offscreen only when that part is done. the delays seem to be working fine.

Author:  chees [ Sat Jan 07, 2006 5:55 pm ]
Post subject: 

Really? The delays work properly? I can't get them to work at what there set to. Like all the lights will stay red for 8 seconds instead of 2 seconds like there supposed to. Maybe Turing isn't really compatible with my processor and delays are handled differently. I'm using an AMD 3700+. Thanx for the help though, I'll try that Smile

Author:  chees [ Sat Jan 07, 2006 6:16 pm ]
Post subject: 

I think I'll just take out offscreenonly. There are too many problems with it there, and it seems to work better without it.


: