This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-03-16 13:25:18

dkdkdude
Scratcher
Registered: 2009-03-16
Posts: 1

Pacman Ghost help.

For class, i have to make a pacman game.  I have created everything and made it work, except the ghosts.  How do you make the ghosts follow the pacman and when they hit a wall, they stop and go on the correct path?

Please help, the teacher even doesn't know how to do it  sad .

Offline

 

#2 2009-03-16 13:59:38

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Pacman Ghost help.

That is getting a bit more complex, especially if you are trying to make an accurate AI.

Try checking out the code in this project.
http://scratch.mit.edu/projects/bigB/15121


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer