Computer Science Canada

cls flashing... Little help?

Author:  SKS [ Tue Mar 30, 2004 3:00 pm ]
Post subject:  cls flashing... Little help?

Alright, I'm a rather huge turing newb making an "animation" for my computers class.

All I want is some text to move across the top of the screen. If I don't use cls, it's just a big black line (obviousely.) If I do, it makes the text flash on and off everytime it goes through the loop.

Anyone have a remedy?

Author:  AsianSensation [ Tue Mar 30, 2004 3:20 pm ]
Post subject: 

use View.Update, there is a pretty good tutorial on this site somewhere.

Author:  sport [ Tue Mar 30, 2004 4:11 pm ]
Post subject:  Cls

cls erases everything and than you redraw the thing again that is why it is flashing.

Author:  Krabjuice [ Tue Mar 30, 2004 4:37 pm ]
Post subject: 

When you declare graphics mode, make sure to use "offscreenonly" that way the image is pasted on, instead of erased and then pasted on.

Author:  guruguru [ Tue Mar 30, 2004 5:35 pm ]
Post subject: 

Okay... this si what you should do. At the very top of program type (or add if you already have a setscreen):
code:
setscreen ("offscreenonly")

And whenever you draw something new (such as each time the moving words move to a new location) you should (right after) this:
code:

View.Update
cls
Hope that helps 8) .

P.S It really is annoying how you cant use two [codes] in this forum. Mad Wink

Mod Edit: Sure you can, see?
Another Mod: eh... first you View Update, then you cls... and stick that after you done drawing frame
Another Another Mod: about that code thing, it dose somtimes cause wired errors, i am still working on it. but i dont got tones of time with school and all.


: