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

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




PostPosted: Tue Nov 30, 2004 10:32 pm   Post subject: Snow help

hey im in grade 10. I need help with my program.so far we only learnt drawfill...etc. and basic stuff like var, 3 types of loop, case construsct.
My problem is that im trying to put snow in the background without making the whole thing flicker. Can someone help me.
Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Tue Nov 30, 2004 10:48 pm   Post subject: (No subject)

View.Update is your friend.

No more screen flickers! by tony
jamescyrus




PostPosted: Tue Nov 30, 2004 11:12 pm   Post subject: (No subject)

that doesnt really help
Delos




PostPosted: Wed Dec 01, 2004 11:59 am   Post subject: (No subject)

code:

setscreen ("offscreenonly")


Draw what you need, bg first, followed by foreground.

code:

View.Update


Updates screen. Time.Delay() for a bit. Redraw, View.Update again.
SuperGenius




PostPosted: Wed Dec 01, 2004 5:46 pm   Post subject: (No subject)

If you're trying to simulate a lot of snowflakes at once you'll be asking the computer to do a lot of calculatons. You are probably used to nice, speedy computers at home, but it is possible your computers at school are not so quick. Also, this is something you should keep in mind when your summative project rolls around, because it you haven't tested it at school it might look really crummy when the teacher tries to run it.
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  [ 5 Posts ]
Jump to:   


Style:  
Search: