Computer Science Canada View.Update + background trouble |
Author: | xevious [ Sat Nov 12, 2005 9:52 am ] | ||
Post subject: | View.Update + background trouble | ||
I'm having a little trouble with View.Update. When I use cls it wipes my background, and I don't know any way around it. Here's what I have so far:
|
Author: | Cervantes [ Sat Nov 12, 2005 10:01 am ] |
Post subject: | |
Don't put View.Set ("offscreenonly") inside a loop. It's not necessary. Indent! Try pressing F2 in the turing editor. Why draw your picture twice? Once before the delay and once after. Drawing it once is enough. If you want your background to stay, you've got to redraw it, much like you are redrawing "mypic" inside the loop. |
Author: | ZeroPaladn [ Mon Nov 14, 2005 11:19 am ] | ||
Post subject: | |||
just a question, why do you have procedures with 1 line of code in it, especially when you run that procedure only once? Do what cervantes says, and put the picture in the code, like so (this is jsut an example)
Hope this sheds some light on the subject. |
Author: | iker [ Mon Nov 14, 2005 7:14 pm ] | ||
Post subject: | |||
write a code that has a loop such as
|