Computer Science Canada program flashes |
Author: | jrblast [ Thu Dec 08, 2005 8:23 pm ] | ||
Post subject: | program flashes | ||
Well, in light of finishing my game of snake, i decided to move onto a more complex game...much of the coded so far i took from the astroids game lol, anyways, it keeps flashing, i use the viewupdate thing, but it still flashes, any ideas? heres the code btw
any helps appreciated |
Author: | Tony [ Thu Dec 08, 2005 8:28 pm ] | ||
Post subject: | |||
View.Update works with "offscreenonly" You have a mess of a declaration there
I'd think that graphics might overwrite offscreenonly. |
Author: | jrblast [ Thu Dec 08, 2005 8:33 pm ] |
Post subject: | |
:O your right tyvm |
Author: | do_pete [ Thu Dec 08, 2005 9:42 pm ] |
Post subject: | |
you have to get rid of the "," after "graphics: 900;" |
Author: | [Gandalf] [ Fri Dec 09, 2005 3:12 am ] |
Post subject: | |
Tony wrote: I'd think that graphics might overwrite offscreenonly.
It doesn't, any of it can be in any order. |
Author: | codemage [ Fri Dec 09, 2005 8:51 am ] |
Post subject: | |
Your delay needs to be AFTER the View.Update. |
Author: | Tony [ Fri Dec 09, 2005 9:21 am ] |
Post subject: | |
[Gandalf] wrote: Tony wrote: I'd think that graphics might overwrite offscreenonly.
It doesn't, any of it can be in any order. that's why I've said "might", I didn't have Turing at the moment of writing to try it out. codemage has gotten it though. Delay after View.Update |
Author: | [Gandalf] [ Fri Dec 09, 2005 4:18 pm ] |
Post subject: | |
Tony wrote: [Gandalf] wrote: Tony wrote: I'd think that graphics might overwrite offscreenonly.
It doesn't, any of it can be in any order. that's why I've said "might", I didn't have Turing at the moment of writing to try it out. Just correcting you for anyone else's benefit. You can't check, so why don't I? About the delay after View.Update, although that would be better coding, it's not necessary to eliminate the flickering. |