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

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




PostPosted: Sat Dec 04, 2010 9:10 pm   Post subject: pacman anitmation help

im learning to use turing at my school and my teacher want a pacman animation. when pacman eats 3 balls and by the 4 one its slightly bigger then the last 3. if one of you can help with the mouth opening up and down i can firgure out the rest. thanks Very Happy
Sponsor
Sponsor
Sponsor
sponsor
ragunox




PostPosted: Sat Dec 04, 2010 9:11 pm   Post subject: Re: pacman anitmation help

sorry for the grammer, my english isnt very good.
Insectoid




PostPosted: Sat Dec 04, 2010 9:37 pm   Post subject: RE:pacman anitmation help

Draw an image of pacman with his mouth open, then draw an image of pacman with his mouth closed. Repeat.
ragunox




PostPosted: Sat Dec 04, 2010 10:32 pm   Post subject: RE:pacman anitmation help

so for example i draw it on ms paint and import to turring?
Insectoid




PostPosted: Sat Dec 04, 2010 10:35 pm   Post subject: RE:pacman anitmation help

You could. Or you could use the built-in draw functions in Turing (Big hint: Draw.FillOval and Draw.FillArc).
majinsarek




PostPosted: Mon Dec 06, 2010 10:19 am   Post subject: Re: pacman anitmation help

since pacman only has two basic motions, the easiest way would be to do this:
1. find a picture of pacman with his mouth open, and mouth closed.
2. import the pictures into your turing program.
3. have it draw one of the pacman pictures, and if you hit a key, change to the other one.

im not sure the best way to do this.. the only thing i can think of would be to keep a count of the time the user has clicked the button. if they button was pushed an even amount of times, then his mouth would be closed, where as if it was pushed an odd amount of times, his mouth would be open.

i hope that could help.. if you wanna email me at prier8845@hotmail.com i could probrably write a sample code for you..
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  [ 6 Posts ]
Jump to:   


Style:  
Search: