Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 flicker problem
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
tino




PostPosted: Thu Jan 13, 2005 5:45 pm   Post subject: flicker problem

thanks
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Thu Jan 13, 2005 6:01 pm   Post subject: (No 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: