pacman ai collision and flee

This is a discussion on pacman ai collision and flee within the Game Programming forums, part of the General Programming Boards category; Hi, I would like some more help, please. The problems is with completing my pacman game. The problems occur with ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    380

    pacman ai collision and flee

    Hi,
    I would like some more help, please.
    The problems is with completing my pacman game. The problems occur with the ai, collision detecting, and the ghosts fleeing.

    There are three ghosts blue, green, and red. The blue ghost is suppose to act like a homing missile,but it doesn't. The green ghost is suppose to use the bloodhound ai, but it sometimes gets trapped at a wall. The red ghost is to move randomly. Also, none of them flee properly.

    In the demo most of the time if you move towards any of the ghosts you will see that pacman will become the ghost.

    http://www.geocities.com/calvinl97/l...es/pacman1.zip

    Any help will be appreciated.

    Thank you.

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    your link was dead!

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by pode
    your link was dead!

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    What's wrong with copying and pasting? Anyways goto http://www.geocities.com/calvinl97/l...rogramming.htm and download pacman1.zip.
    Last edited by lambs4; 01-29-2003 at 08:53 AM.

  5. #5
    Registered User deltabird's Avatar
    Join Date
    Jan 2003
    Posts
    73
    >>your link was dead!

    Geocities has a problem with directly linking to a file. Like lamb said, go to the page he linked.

    And for lambs:

    I would suggest changing the color of the pathway, other than that I'm looking over your code to try and find your problem. Also, are you using the timer for allegro? The game runs too fast on my machine.

  6. #6
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    Yes, I'm using the Allegro timers.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21