
-----------------------------------
jamescyrus
Tue Nov 30, 2004 10:32 pm

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.

-----------------------------------
Delos
Tue Nov 30, 2004 10:48 pm


-----------------------------------
View.Update is your friend.

[url=http://www.compsci.ca/v2/viewtopic.php?t=193]No more screen flickers! by tony

-----------------------------------
jamescyrus
Tue Nov 30, 2004 11:12 pm


-----------------------------------
that doesnt really help

-----------------------------------
Delos
Wed Dec 01, 2004 11:59 am


-----------------------------------

setscreen ("offscreenonly")


Draw what you need, bg first, followed by foreground.


View.Update


Updates screen.  Time.Delay() for a bit.  Redraw, View.Update again.

-----------------------------------
SuperGenius
Wed Dec 01, 2004 5:46 pm


-----------------------------------
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.
