Computer Science Canada Getting Pacman to change direction.. please help asap |
Author: | acc_minion [ Tue Jan 20, 2004 5:55 pm ] | ||
Post subject: | Getting Pacman to change direction.. please help asap | ||
Okay the code i have now (
As you see has some problems, at school the leaving of yellow crap isnt there, how ever wht I want to know is how to make hime change directions so if you press up he faces up. I know it is simple but time constraints are keeping me from doing this. Please help. |
Author: | Cervantes [ Tue Jan 20, 2004 6:12 pm ] |
Post subject: | |
you have to use Pic.Rotate bring out the help file!! |
Author: | acc_minion [ Wed Jan 21, 2004 6:13 pm ] |
Post subject: | |
yes but it donst help me in implementing it, if you lok at the code fron the help and the code im using, I have no idea what i am doing |
Author: | Cervantes [ Thu Jan 22, 2004 6:56 pm ] | ||
Post subject: | |||
first you have to make pacman into a variable by using Pic.New %draw pacman here var pacman : int := Pic.New (x1,y1,x2,y2) cls if you want him with the mouth moving you have to use case... looks like this
hope this helps |
Author: | DanShadow [ Thu Jan 22, 2004 10:40 pm ] | ||
Post subject: | |||
or easier yet: (with four different pics of him in different directions)
|
Author: | Cervantes [ Fri Jan 23, 2004 2:02 pm ] |
Post subject: | |
except with that his mouth isn't moving.... |