Computer Science Canada

animation

Author:  candy_kid [ Sat Dec 07, 2002 11:11 am ]
Post subject:  animation

HI everyone! I'm in desperate need of help!!! Sad I have to create a program with animations though HOW DO I MAKE my santa wink??!!! Confused too god damn confusing!!! & the snów's not falling either!!!!





~~In NEED of HElp~~

Author:  krishon [ Sat Dec 07, 2002 12:36 pm ]
Post subject: 

well, there is a way to make it blink, you could put it inside an if statemnet and change the co-ordinates of the eye in every loop. You just need to draw a face, and then put like an if statement so the co-ordinates of the eye changes for every time it goes through the if

Author:  Tony [ Sat Dec 07, 2002 2:21 pm ]
Post subject: 

easiest way to animate snow is

code:

var x,y:int
colorback(black)
loop
cls
for i:1..1000
x := Rand.Int(1,maxx)
y := Rand.Int(1,maxy)
drawdot(x,y,white)
end for
delay(100)
end loop


This makes a very nice falling snow effect.

To make santa wink, you do something like this:

code:

for i:1..100
%drawsanta
if (i mod 2 = 0) %every second number
then
%draw closed eye on top of santa
end if
delay(100)
end for


So during run, @ 1 it will just draw santa, @2 it will draw santa with closed eye on top making it look like he winks, @3 its just santa with open eyes agan and so on.

Good luck on your assigment.


: