
-----------------------------------
CSC
Sun Dec 14, 2008 2:28 pm

Snowfall
-----------------------------------
K guys. This is how it is. I got to make a Christmas card, and i need help making snowfall. Can anyone help me please? If its possible, please tell me how u can pile up the snow on the bottom while its snowing. Thank you!

-----------------------------------
ecookman
Sun Dec 14, 2008 2:35 pm

RE:Snowfall
-----------------------------------
you would have to draw a black background or one that white will show up on..
then use the locate function
make a for loop
in the forloop have the y decrease by a value kinda like this


example: an animation i did


var f1 : int := Font.New ("Airal:72:bold")
var f2 : int := Font.New ("Airal:20:bold")

for a : 1 .. 20
    locate (5, +a)

    put "      ______"
    locate (6, +a)

    put "     / TTYL \\#########  "
    locate (7, +a)
    put " ___/________\\___"
    locate (8, +a)
    put "/  ____________  \\"
    locate (9, +a)
    put "


in the for loop the +a simply says every time you repeat add one to me

so like
1 loops
2 loops
3 loops


you just have to play with the locate function and the y corr.

-----------------------------------
CSC
Sun Dec 14, 2008 2:43 pm

RE:Snowfall
-----------------------------------
Umm isn't there a way to make snow fall using Random integer?

-----------------------------------
ecookman
Sun Dec 14, 2008 2:45 pm

RE:Snowfall
-----------------------------------
not sure...you could set the movements so it will increase the x and y and then decrease so you get a side to side movement...other than that i don't know

-----------------------------------
copthesaint
Sun Dec 14, 2008 4:06 pm

Re: Snowfall
-----------------------------------
Yes it's Rand.Int (#,#)
This isn't acually random (based on time) but If you want True Random look up Rand.Seed
for what your doing though Rand.int will be fine
