Computer Science Canada Moving Ball, Flicker Reduction |
Author: | TheXploder [ Mon Jan 19, 2004 11:06 pm ] | ||
Post subject: | Moving Ball, Flicker Reduction | ||
There are many ways to update the position of a ball one of which is 'cls' which stands for 'clear screen' I'll give you a simple tutorial on how to reduce that flicker. The code using cls:
As you can see this reduces the fickering to a minimum. Because the screen is not redrawn completely, only were the ball previously was. Hope this tutorial helps.. -=TheXploder=- |
Author: | Tony [ Mon Jan 19, 2004 11:27 pm ] |
Post subject: | |
or you could just use View.Update (or now that 4.0.5 is out, View.UpdateArea) good job for trying though+Bits |
Author: | Skizzarz [ Tue Jan 20, 2004 6:54 pm ] |
Post subject: | |
thx for the great tutorial, i used some of the code in my "hockey puck" program for school and all my classmates wonder how its so smooth |
Author: | Mazer [ Tue Jan 20, 2004 7:51 pm ] | ||||
Post subject: | Re: Moving Ball, Flicker Reduction | ||||
TheXploder wrote:
You should have blanked out the ball before increasing the x coordinate, otherwise you get this blue streak.
|
Author: | LiquidDragon [ Wed Feb 18, 2004 8:16 pm ] | ||
Post subject: | |||
well couldnt your just do something like this?
|
Author: | Kamikagushi [ Thu Jun 10, 2004 4:34 pm ] |
Post subject: | |
~a question~after you use View.Update~how would you turn it off~ |
Author: | Delos [ Thu Jun 10, 2004 5:18 pm ] |
Post subject: | |
Repost your question in the Help forum, you'll get better answers... |
Author: | nerdie [ Mon Jun 21, 2004 3:06 pm ] |
Post subject: | |
does View.Set ("nooffscreenonly") exist? and if it does did i spell it correctly? |
Author: | GlobeTrotter [ Mon Jun 21, 2004 3:37 pm ] |
Post subject: | |
It does exist, you spelled it right. |
Author: | naoki [ Fri Jun 25, 2004 4:36 pm ] |
Post subject: | |
View.Update is merely a one time thing, like cls. It acts by basically showing you anything drawn on the screen before View.Update was called. Thus, you may need to call View.Update in several places of your program in order to see different things. As well, isn't Turing set by default to nooffscreenonly? So why bother unless you set to offscreen in the first place |