We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, we are beginners on processing and for the exams this years we have a project to deliver. So with a friend we decided to make a PacMan (probably a lack of imagination). The program is quite simple but we have some problems making the ghost move, we did a little code but it just moving left and right. So we don't know who to ask and we came here. Could you please give us informations please ? I don't know how to post the code, ask me for my e-mail.
Thanks!
Answers
https://forum.Processing.org/two/discussions/tagged?Tag=#pacman
Whats your email?
chromatiques@gmail.com
Wow...
You posted your email.
I mean, you could have posted it in your original post, saving about 1 week....
anyway, how far did you come in this week?
To move a ghost also vertically add something (
addY
) to its y-position (also a variable)addY
is e.g. +1 or -1You could change
addX
andaddY
when hitting a wall or after a random period of time and then let random decide the new values for the 2 vars.Do you use objects? OOP?
How do the ghosts avoid the walls?
thanks for answering the above...