Computer Science Canada

flicker problem

Author:  tino [ Thu Jan 13, 2005 5:45 pm ]
Post subject:  flicker problem

thanks

Author:  Cervantes [ Thu Jan 13, 2005 6:01 pm ]
Post subject: 

1.)
[ code][ /code] or [ syntax] [ /syntax] tags, please Smile

2.)
code:

setscreen ("graphics: 640:480") % Sets the screen size

needs to be
code:

setscreen ("graphics:640;480,offscreenonly") % Sets the screen size

Note the thing between 640 and 480 is not a colon, it's a semi-colon.

3.)You should try to have just one cls, one View.Update, and one delay.
Personally, I would put the cls at the start of the loop, but you can have it at the end of the loop (after the View.Update and delay (40)) just as well.
I would suggest eliminating that delay (500).

4.) (This one isn't related to the flickering)
Don't declare variables inside a loop. You should move your declaration of x3 and y3 outside the loop.

5.) Looks nice! Smile

-Cervantes


: