pacman anitmation help
Author |
Message |
ragunox
|
Posted: 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 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
ragunox
|
Posted: Sat Dec 04, 2010 9:11 pm Post subject: Re: pacman anitmation help |
|
|
sorry for the grammer, my english isnt very good. |
|
|
|
|
|
Insectoid
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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.. |
|
|
|
|
|
|
|