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

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




PostPosted: 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~~
Sponsor
Sponsor
Sponsor
sponsor
krishon




PostPosted: Sat Dec 07, 2002 12:36 pm   Post subject: (No 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
Tony




PostPosted: Sat Dec 07, 2002 2:21 pm   Post subject: (No 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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  [ 3 Posts ]
Jump to:   


Style:  
Search: