Computer Science Canada

How to stop flickering?

Author:  sensfan [ Thu Jan 19, 2006 11:51 am ]
Post subject:  How to stop flickering?

How can you stop the words/images from flickering? Sorry for the short question but I just want to know how to make programs smooth instead of looking all cut up and choppy.

Author:  sylvester-27 [ Thu Jan 19, 2006 11:53 am ]
Post subject: 

are you using offscreenonly? to make it stop flickering,
code:
View.Update
should work. if not tell me

Author:  ZeroPaladn [ Thu Jan 19, 2006 12:13 pm ]
Post subject: 

what sylvester is trying to say is that to stop the flicker you need two things. View.Set and View.Update.
View.Set sets the screen up to whatever you want. Check out your Help File for more details. anyways, you'll need this code...

code:
View.Set ("offscreenonly")


this sets your screen so that all output to the screen is delayed untill you call this little chunk of code...

code:
View.Update


Usually you'll want to call this at the end of the loop, or before a delay, but never put 2 View.Updates together, as youll just create the problem that you strived to avoid. hope this helps.

Author:  GoVikingsGo [ Thu Jan 19, 2006 8:11 pm ]
Post subject: 

turing is so glitchy in this matter when it comes to screen seting but use View.Update

Author:  Albrecd [ Fri Jan 20, 2006 12:03 pm ]
Post subject: 

Quote:
turing is so glitchy in this matter when it comes to screen seting but use View.Update


Can you really say this? Just because you are unable to make something work doesn't mean it's glitchy. That's like saying that math is glitchy because you can't fully calculate pi.


: