November 01, 2023, 01:09:54 pm

  • The NEW Build Your Own Arcade Controls |
  • Main |
  • Main Forum |
  • When can you go through Pacman ghosts?

Author Topic: When can you go through Pacman ghosts?  (Read 19993 times)

0 Members and 1 Guest are viewing this topic.

  • Trade Count: ( 0 )
  • Full Member
  • Posts: 1034
  • Last login:July 15, 2018, 12:01:39 am
  • Trade Count: ( +1 )
  • Last login:August 02, 2023, 11:54:44 am

Re: When can you go through Pacman ghosts?

  • Last login:May 12, 2009, 11:22:33 pm
  • Movement is an illusion
  • Trade Count: ( +14 )

pac man going through ghosts

  • Posts: 6842
  • Last login: Today at 09:22:14 am
  • Friends don't let friends hack keyboards.
I don't think there is any hard/fast rule.  I believe it is a glitch in the system.

pac man going through ghosts

  • Don't brand me a troublemaker!
  • Trade Count: ( +8 )
  • Posts: 5282
  • Last login:October 14, 2023, 01:52:16 pm
  • Intellivision Rocks!
This is correct behavior.  The collision detection works by keeping track of what 8x8 pixel square all the objects are on.   So if you step off of your square onto a ghosts square and he steps off his square and on to yours simultaneously you didn't ever occupy the same square. Dave
First off, Hoopz is right.

paigeoliver

  • Trade Count: ( +2 )
  • Posts: 10992
  • Last login:March 29, 2022, 06:10:15 pm
  • Awesome face!
  • Last login:April 26, 2010, 07:58:51 am
I was playing Pacman (Midway) the other day and doing a mid-fruit pattern on the second orange (or peach) level. I screwed up the pattern but didn't realize it and continued to mindlessly follow the pattern along. I was going up the left side of the corral and Pinky was blasting down looking right at me. I went right through her and she kept right on going too. I was stunned for a second and, as a result, died not much later. I remember that you can go through the ghosts sometimes, but what are the conditions? I'd love to be able to play that into one of my regular patterns or use it to get out of trouble. Learning the hard way will take me a long time. -pmc
  • Trade Count: ( +4 )
  • Posts: 3604
  • Last login:July 10, 2023, 04:07:06 pm
  • The Game Always Wins
  • Last login:November 08, 2021, 10:13:41 am
  • Oop! Ack! Thppphbt!

rockin_rick

  • Trade Count: ( +3 )
  • Last login:May 27, 2017, 09:20:20 am

Spaz Monkey

  • Last login:February 15, 2011, 11:33:55 pm
  • Hit me with a chicken quesadilla and a Coke.
  • Hey Saint, wanna update my custom title? ;D
  • Posts: 3041
  • Last login:April 11, 2023, 07:54:12 am

FrizzleFried

  • no one listens to me anyway.
  • Posts: 5144
  • Last login:May 30, 2023, 01:14:24 pm
pmc, I don't remember the exact link but I think I found it randomly surfing Twin Galaxies. Here is the thread where it began: http://www.twingalaxies.com/forums/viewtopic.php?t=5727&view=next&sid=97bf758352a15ca0250daf2188d1196e

deadkenndys1105

  • Last login:November 27, 2012, 03:55:05 pm

RyoriNoTetsujin

  • Last login:August 22, 2023, 11:58:36 am
  • SMF 2.0.15 | SMF © 2017 , Simple Machines Simple Audio Video Embedder
  • Yabb SE Classic 2.0, by Akyhne

Page created in 0.626 seconds with 40 queries.

New to Shacknews? Signup for a Free Account

Already have an account? Login Now

  •  Subscribe

Shacknews Logo

  •  Latest Pets
  •  Forum: Posts today 546

How to pass through ghosts - PAC-MAN 99

Learn how to drift around corners in PAC-MAN 99 so you can pass through ghosts unscathed!

Sam Chandler

Unlike ghosts in real life, ghosts in PAC-MAN 99 cannot be walked through. These things will either kill PAC-MAN as soon as he touches them, or if he’s eaten a Power Pellet, will be killed and returned to ghost jail. However, there is a way to pass through ghosts in PAC-MAN 99, and it’s all thanks to a helpful mechanic that can be easy to miss if you don’t know how to do it.

How to pass through or dodge ghosts

pac-man 99 pass through ghosts

An interesting mechanic in PAC-MAN 99 is the ability to pass through ghosts by dodging them. To do this, you must hold the direction before a turn. If a ghost was on the corner or close by, you will “drift” through the ghost, bypassing the damage it would have dealt to PAC-MAN.

You can see this drifting effect in action even if there are no ghosts nearby. As you approach a turn, begin holding the direction you want to go, and as you go around the corner, you will see little lines come off of PAC-MAN – this indicates you have successfully drifted.

pac-man 99 drift pass through ghosts

The challenging part, then, is ensuring that the ghost is in the correct spot. If the ghost is too far from the corner you will simply connect with the ghost as normal, killing PAC-MAN. There are also rumors going around that using the drift can let you dodge Red Jammer PAC-MAN units. This might be a useful strategy if you’re trying to kill the Red Jammers but can’t get to the right spot in time.

While passing through ghosts using the drift mechanic might not be the best strategy for avoiding them, it’s at least a good idea to drift around all the corners, just in case you accidentally run into a ghost. Be sure to check out the Shacknews PAC-MAN 99 page for more guides to help you get that PAC-ONE score!

Guides Editor

Hailing from the land down under, Sam Chandler brings a bit of the southern hemisphere flair to his work. After bouncing round a few universities, securing a bachelor degree, and entering the video game industry, he's found his new family here at Shacknews as a Guides Editor. There's nothing he loves more than crafting a guide that will help someone. If you need help with a guide, or notice something not quite right, you can Tweet him:  @SamuelChandler  

Listen to Electronic Arts' (EA) Q2 2024 earnings call here

Sam Chandler posted a new article, How to pass through ghosts - PAC-MAN 99

Hello, Meet Lola

Up Your Pac-Man Game by Learning the Different Strategies of Each Ghost

By mental floss uk | mar 29, 2017.

Wikimedia Commons // Caitlin Schneider

by Ryan Lambie

In the 37 years since it quietly slipped into Tokyo arcades,  Pac-Man  has become a global phenomenon. Developed by Namco, the pill-munching maze game remains a pop culture staple despite the fact that most of us rarely step foot inside an arcade anymore. And while the machines themselves have dwindled somewhat in our public spaces, Pac-Man still thrives on consoles and mobile phones.

Pac-Man ’s genius lies in its simplicity. We doubt you need a refresher but just in case: you're the hungry yellow blob with the unenviable task of traversing a maze and eating all the dots within it as a quartet of ghosts chase you, block your path, and generally make your life more complicated. You're not powerless against the googly-eyed hunters though—the power pellets located around the screen render the ghosts vulnerable and suddenly keen to avoid your attention, making you the pursuer. Eating the ghosts in these few precious seconds will net you extra points, but only buy you a short grace period before they re-emerge to chase you down once more.

Designer Toru Iwatani once said that Pac-Man would have been boring had it simply been about collecting pellets, so he added the ghosts as an additional layer of challenge. Even better, Iwatani programmed the ghosts so that each has its own unique set of movements and quirks. The start of the game even gives them names: Blinky, Pinky, Inky and Clyde. The programming behind these individual ghosts is governed by an ingenious-but-simple set of behaviors, and understanding them is key to mastering the game. Here’s a brief look at the rules behind Pac-Man ’s ghosts.

CHASING AND SCATTERING

When a new game of Pac-Man begins, only one ghost is present in the maze: the red one, Blinky. Gradually, more ghosts enter from the holding pen—widely dubbed the 'ghost house' in the center of the screen. A less ambitious designer might have programmed the ghosts so that they constantly follow the player around, ultimately boxing them into a corner and relieving them of one of their lives. Iwatani realized, however, that a constant sense of pressure would make for a stressful—and perhaps not particularly fun—game, so he made sure that the ghosts’ behavior changed every few seconds.

The ghosts, therefore, cycle between two states, which Jamey Pittman, writing on his website The Pac-Man Dossier , calls "scatter mode" and the "chase mode." In scatter mode, each ghost will head for a target in its own pre-defined corner of the screen. Pinky, the pink ghost, will head for the top left of the maze; Blinky the top right; blue ghost Inky the bottom right; Clyde the orange ghost, bottom left. (There's also a third mode, "frightened," after Pac-Man eats a power pellet, but we're ignoring that for now since it's when the player has the power.)

As the target square isn't actually reachable, once they’ve reached their target zone, the ghosts will follow a looping path around their individual corners for a few seconds before they switch over to chase mode. As the name implies, this means the ghosts will start to actively pursue the player until they switch back to scatter mode. The way each ghost pursues the player is defined by its unique, pre-programmed behaviors.

BLINKY, THE RED GHOST

Of all the ghosts, this one’s the easiest to describe. In chase mode, Blinky’s target is Pac-Man, and the ghost will hunt the player constantly until its pattern switches to scatter mode, when it heads back to its corner of the maze. There is, however a bit of a twist: when there are 20 dots left in the maze (increasing at higher levels), Blinky’s speed will increase slightly. Its speed will increase yet again when there are 10 dots left. At these points, Blinky’s behavior in scatter mode will also change; instead of moving back to its corner at the top right of the maze, it will continue to chase Pac-Man. This behavior, dubbed " Cruise Elroy " by players, makes Blinky the most fearsome character in the game, since it’ll only switch back to its less speedy, persistent state once the player’s either eaten all the dots or lost a life.

PINKY, THE PINK GHOST

Pinky's strategy for taking down Pac-Man is a bit more strategic. It's programmed to take a route to a position four spaces ahead of wherever Pac-Man’s moving, which can easily leave the player trapped. But there is a bug that can work in your favor: when Pac-Man’s moving up the screen, Pinky will target a space four squares in front of his position and  four squares to the left. Skillful players can exploit this to their own advantage, and confuse Pinky’s AI by briefly moving towards the ghost as it closes in—this will often send it down a different branch of the maze as its target in front of Pac-Man suddenly shifts.

CLYDE, THE ORANGE GHOST

The orange ghost’s behavior is more unpredictable at first glance, but it’s still governed by its own simple rules. In chase mode, Clyde’s movements will vary based on its proximity to Pac-Man; if it’s more than eight squares away, it’ll behave like Blinky and select Pac-Man as its target, but within eight squares, it’ll move back to the bottom left corner of the maze—a.k.a. its zone in scatter mode. This means that Clyde can look as threatening as Blinky one moment, and then cowardly and indecisive the next. Once its cycle of movement is understood, avoiding Clyde becomes a relatively simple task.

INKY, THE BLUE GHOST

The wiliest of all the ghosts, Inky’s movements are perhaps the most difficult to track. This is because its target is based not just on the player’s direction and position, but also Blinky’s. In chase mode, Inky heads to a space just in front of Pac-Man (much like Pinky), but just to make things more confusing, it will then move that position to a spot that is twice the distance from Blinky’s current position.

In other words, Inky draws a line from Blinky, through a spot two spaces in front of Pac-Man, and will head to a position that is double the distance from Blinky. This gives the impression of almost random movement when Inky’s further away, but will mean that, as Blinky closes in on Pac-Man, Inky will start to get closer, too. Inky is, however, weighed down with the same bug as Pinky, and can also be fooled into moving in the wrong direction in a similar fashion.

While all this might seem like serious, in-depth game knowledge, it's actually a pretty basic overview of the logic behind Pac-Man ’s ghosts (cue Pac-Man death noise ). The timing of their exit from the 'ghost house' at the center of the maze and their switch between chase and scatter modes, for example, is complex and changes from level to level. Don't let that intimidate you though: simply understanding the rules that govern the ghosts’ movements can help to improve your score, plus it offers a glimpse inside the ingenuity and sheer effort that went into designing one of the most popular games of all time.

GameInternals aims to spread knowledge of interesting game mechanics beyond the game-specific enthusiast communities. Each post focuses on a specific game mechanic that would normally only be known to high-level players of a particular game, and attempts to explain it in a manner that would be understandable even by readers unfamiliar with that game.

GameInternals articles were researched and written by Chad Birch , a gamer and programmer from Calgary, Alberta, Canada.

Understanding Pac-Man Ghost Behavior

It only seems right for me to begin this blog with the topic that inspired me to start it in the first place. Not too long ago, I came across Jamey Pittman's "Pac-Man Dossier" , which is a ridiculously-detailed explanation of the mechanics of Pac-Man. I found it absolutely fascinating, so this site is my attempt to discover and aggregate similarly-detailed information about other games (albeit in much smaller chunks). However, as a bit of a tribute, I'm going to start with Pac-Man as well, specifically the ghost AI. It's an interesting topic, and hopefully my explanation will be a bit more accessible than Jamey's, due to focusing on only the information relevant to ghost behavior.

About the Game

"All the computer games available at the time were of the violent type - war games and space invader types. There were no games that everyone could enjoy, and especially none for women. I wanted to come up with a "comical" game women could enjoy." - Toru Iwatani, Pac-Man creator

Pac-Man is one of the most iconic video games of all time, and most people (even non-gamers) have at least a passing familiarity with it. The purpose of the game is very simple — the player is placed in a maze filled with food (depicted as pellets or dots) and needs to eat all of it to advance to the next level. This task is made difficult by four ghosts that pursue Pac-Man through the maze. If Pac-Man makes contact with any of the ghosts, the player loses a life and the positions of Pac-Man and the ghosts are reset back to their starting locations, though any dots that were eaten remain so. Other than simply avoiding them, Pac-Man's only defense against the ghosts are the four larger "energizer" pellets located at the corners of the maze. Eating one causes the ghosts to become frightened and retreat for a short time, and in the early levels of the game Pac-Man can even eat the ghosts for bonus points during this period. An eaten ghost is not completely eliminated, but is returned to its starting position before resuming its pursuit. Other than eating dots and ghosts, the only other source of points are the two pieces of fruit which appear during each level near the middle of the maze. The first fruit appears when Pac-Man has eaten 70 of the dots in the maze, and the second when 170 have been eaten.

Initial playfield layout

Every level of Pac-Man uses the same maze layout, containing 240 regular "food" dots and 4 energizers. The tunnels that lead off of the left and right edges of the screen act as shortcuts to the opposite side of the screen, and are usable by both Pac-Man and the ghosts, though the ghosts' speed is greatly reduced while they are in the tunnel. Even though the layout is always the same, the levels become increasingly difficult due to modifications to Pac-Man's speed, as well as changes to both the speed and behavior of the ghosts. After reaching level 21, no further changes to the game's mechanics are made, and every level from 21 onwards is effectively identical.

Common Elements of Ghost Behaviour

"Well, there's not much entertainment in a game of eating, so we decided to create enemies to inject a little excitement and tension. The player had to fight the enemies to get the food. And each of the enemies has its own character. The enemies are four little ghost-shaped monsters, each of them a different colour - blue, yellow, pink and red. I used four different colours mostly to please the women who play - I thought they would like the pretty colours." - Toru Iwatani, Pac-Man creator

Each of the ghosts is programmed with an individual "personality", a different algorithm it uses to determine its method of moving through the maze. Understanding how each ghost behaves is extremely important to be able to effectively avoid them. However, before discussing their individual behaviors, let's first examine the logic that they share.

The Ghost House

When a player begins a game of Pac-Man, they are not immediately attacked by all four of the ghosts. As shown on the diagram of the initial game position, only one ghost begins in the actual maze, while the others are inside a small area in the middle of the maze, often referred to as the "ghost house". Other than at the beginning of a level, the ghosts will only return to this area if they are eaten by an energized Pac-Man, or as a result of their positions being reset when Pac-Man dies. The ghost house is otherwise inaccessible, and is not a valid area for Pac-Man or the ghosts to move into. Ghosts always move to the left as soon as they leave the ghost house, but they may reverse direction almost immediately due to an effect that will be described later.

The conditions that determine when the three ghosts that start inside the ghost house are able to leave it are actually fairly complex. Because of this, I'm going to consider them outside the scope of this article, especially since they become much less relevant after completing the first few levels. If you're interested in reading about these rules (and an interesting exploit of them), the Pac-Man Dossier covers them in-depth (under the "Home Sweet Home" heading) , as always.

Target Tiles

Playfield split into tiles

Much of Pac-Man's design and mechanics revolve around the idea of the board being split into tiles. "Tile" in this context refers to an 8 x 8 pixel square on the screen. Pac-Man's screen resolution is 224 x 288, so this gives us a total board size of 28 x 36 tiles, though most of these are not accessible to Pac-Man or the ghosts. As an example of the impact of tiles, a ghost is considered to have caught Pac-Man when it occupies the same tile as him. In addition, every pellet in the maze is in the center of its own tile. It should be noted that since the sprites for Pac-Man and the ghosts are larger than one tile in size, they are never completely contained in a single tile. Due to this, for the game's purposes, the character is considered to occupy whichever tile contains its center point . This is important knowledge when avoiding ghosts, since Pac-Man will only be caught if a ghost manages to move its center point into the same tile as Pac-Man's.

The key to understanding ghost behavior is the concept of a target tile. The large majority of the time, each ghost has a specific tile that it is trying to reach, and its behavior revolves around trying to get to that tile from its current one. All of the ghosts use identical methods to travel towards their targets, but the different ghost personalities come about due to the individual way each ghost has of selecting its target tile. Note that there are no restrictions that a target tile must actually be possible to reach, they can (and often are) located on an inaccessible tile, and many of the common ghost behaviors are a direct result of this possibility. Target tiles will be discussed in more detail in upcoming sections, but for now just keep in mind that the ghosts are almost always motivated by trying to reach a particular tile.

Ghost Movement Modes

The ghosts are always in one of three possible modes: Chase, Scatter, or Frightened. The "normal" mode with the ghosts pursuing Pac-Man is Chase, and this is the one that they spend most of their time in. While in Chase mode, all of the ghosts use Pac-Man's position as a factor in selecting their target tile, though it is more significant to some ghosts than others. In Scatter mode, each ghost has a fixed target tile, each of which is located just outside a different corner of the maze. This causes the four ghosts to disperse to the corners whenever they are in this mode. Frightened mode is unique because the ghosts do not have a specific target tile while in this mode. Instead, they pseudorandomly decide which turns to make at every intersection. A ghost in Frightened mode also turns dark blue, moves much more slowly and can be eaten by Pac-Man. However, the duration of Frightened mode is shortened as the player progresses through the levels, and is completely eliminated from level 19 onwards.

"To give the game some tension, I wanted the monsters to surround Pac Man at some stage of the game. But I felt it would be too stressful for a human being like Pac Man to be continually surrounded and hunted down. So I created the monsters' invasions to come in waves. They'd attack and then they'd retreat. As time went by they would regroup, attack, and disperse again. It seemed more natural than having constant attack." - Toru Iwatani, Pac-Man creator

Changes between Chase and Scatter modes occur on a fixed timer, which causes the "wave" effect described by Iwatani. This timer is reset at the beginning of each level and whenever a life is lost. The timer is also paused while the ghosts are in Frightened mode, which occurs whenever Pac-Man eats an energizer. When Frightened mode ends, the ghosts return to their previous mode, and the timer resumes where it left off. The ghosts start out in Scatter mode, and there are four waves of Scatter/Chase alternation defined, after which the ghosts will remain in Chase mode indefinitely (until the timer is reset). For the first level, the durations of these phases are:

  • Scatter for 7 seconds, then Chase for 20 seconds.
  • Scatter for 5 seconds, then Chase for 20 seconds.
  • Scatter for 5 seconds, then switch to Chase mode permanently.

The durations of these phases are changed somewhat when the player reaches level 2, and once again when they reach level 5. Starting on level 2, the third Chase mode lengthens considerably, to 1033 seconds (17 minutes and 13 seconds), and the following Scatter mode lasts just 1/60 of a second before the ghosts proceed to their permanent Chase mode. The level 5 changes build on top of this, additionally reducing the first two Scatter lengths to 5 seconds, and adding the 4 seconds gained here to the third Chase mode, lengthening it to 1037 seconds (17:17). Regarding the 1/60-of-a-second Scatter mode on every level except the first, even though it may seem that switching modes for such an insignificant amount of time is pointless, there is a reason behind it, which shall be revealed shortly.

Basic Ghost Movement Rules

The next step is understanding exactly how the ghosts attempt to reach their target tiles. The ghosts' AI is very simple and short-sighted, which makes the complex behavior of the ghosts even more impressive. Ghosts only ever plan one step into the future as they move about the maze. Whenever a ghost enters a new tile, it looks ahead to the next tile that it will reach, and makes a decision about which direction it will turn when it gets there. These decisions have one very important restriction, which is that ghosts may never choose to reverse their direction of travel. That is, a ghost cannot enter a tile from the left side and then decide to reverse direction and move back to the left. The implication of this restriction is that whenever a ghost enters a tile with only two exits, it will always continue in the same direction.

However, there is one exception to this rule, which is that whenever ghosts change from Chase or Scatter to any other mode, they are forced to reverse direction as soon as they enter the next tile. This forced instruction will overwrite whatever decision the ghosts had previously made about the direction to move when they reach that tile. This effectively acts as a notifier to the player that the ghosts have changed modes, since it is the only time a ghost can possibly reverse direction. Note that when the ghosts leave Frightened mode they do not change direction, but this particular switch is already obvious due to the ghosts reverting to their regular colors from the dark blue of Frightened. So then, the 1/60-of-a-second Scatter mode on every level after the first will cause all the ghosts to reverse their direction of travel, even though their target effectively remains the same. This forced direction-reversal instruction is also applied to any ghosts still inside the ghost house, so a ghost that hasn't yet entered the maze by the time the first mode switch occurs will exit the ghost house with a "reverse direction as soon as you can" instruction already pending. This causes them to move left as usual for a very short time, but they will almost immediately reverse direction and go to the right instead.

Simplified map showing intersection tiles

The diagram above shows a simplified representation of the maze layout. Decisions are only necessary at all when approaching "intersection" tiles, which are indicated in green on the diagram.

A ghost making a decision

When a decision about which direction to turn is necessary, the choice is made based on which tile adjoining the intersection will put the ghost nearest to its target tile, measured in a straight line. The distance from every possibility to the target tile is measured, and whichever tile is closest to the target will be selected. In the diagram to the left, the ghost will turn upwards at the intersection. If two or more potential choices are an equal distance from the target, the decision between them is made in the order of up > left > down. A decision to exit right can never be made in a situation where two tiles are equidistant to the target, since any other option has a higher priority.

A ghost making the wrong decision

Since the only consideration is which tile will immediately place the ghost closer to its target, this can result in the ghosts selecting the "wrong" turn when the initial choice places them closer, but the overall path is longer. An example is shown to the right, where straight-line measurement makes exiting left appear to be a better choice. However, this will result in an overall path length of 26 tiles to reach the target, when exiting right would have had a path only 8 tiles long.

One final special case to be aware of are the four intersections that were colored yellow on the simplified maze diagram. These specific intersections have an extra restriction — ghosts can not choose to turn upwards from these tiles. If entering them from the right or left side they will always proceed out the opposite side (excepting a forced direction-reversal). Note that this restriction does not apply to Frightened mode, and Frightened ghosts may turn upwards here if that decision occurs randomly. A ghost entering these tiles from the top can also reverse direction back out the top if a mode switch occurs as they are entering the tile, the restriction is only applied during "regular" decision-making. If Pac-Man is being pursued closely by ghosts, he can gain some ground on them by making an upwards turn in one of these intersections, since they will be forced to take a longer route around.

Individual Ghost Personalities

"This is the heart of the game. I wanted each ghostly enemy to have a specific character and its own particular movements, so they weren't all just chasing after Pac Man in single file, which would have been tiresome and flat." - Toru Iwatani, Pac-Man creator

The ghosts and their names in English and Japanese

As has been previously mentioned, the only differences between the ghosts are their methods of selecting target tiles in Chase and Scatter modes. The only official description of each ghost's personality comes from the one-word "character" description shown in the game's attract mode. We'll first take a look at how the ghosts behave in Scatter mode, since it's extremely straightforward, and then look at each ghost's approach to targeting in Chase mode.

Scatter Mode

The ghosts' Scatter mode targets

Each ghost has a pre-defined, fixed target tile while in this mode, located just outside the corners of the maze. When Scatter mode begins, each ghost will head towards their "home" corner using their regular path-finding methods. However, since the actual target tiles are inaccessible and the ghosts cannot stop moving or reverse direction, they are forced to continue past the target, but will turn back towards it as soon as possible. This results in each ghost's path eventually becoming a fixed loop in their corner. If left in Scatter mode, each ghost would remain in its loop indefinitely. In practice, the duration of Scatter mode is always quite short, so the ghosts often do not have time to even reach their corner or complete a circuit of their loop before reverting back to Chase mode. The diagram shows each ghost's target tile and eventual looping path, color-coded to match their own color.

The Red Ghost

The red ghost's targeting method

The red ghost starts outside of the ghost house, and is usually the first one to be seen as a threat, since he makes a beeline for Pac-Man almost immediately. He is referred to as "Blinky", and the game describes his personality as shadow . In Japanese, his personality is referred to as 追いかけ, oikake , which translates as "pursuer" or "chaser". Both languages' descriptions are accurate, since Blinky's target tile in Chase mode is defined as Pac-Man's current tile. This ensures that Blinky almost always follows directly behind Pac-Man, unless the short-sighted decision-making causes him to take an inefficient path.

Even though Blinky's targeting method is very simple, he does have one idiosyncrasy that the other ghosts do not; at two defined points in each level (based on the number of dots remaining), his speed increases by 5% and his behavior in Scatter mode changes. The timing of the speed change varies based on the level, with the change occurring earlier and earlier as the player progresses. The change to Scatter targeting is perhaps more significant than the speed increases, since it causes Blinky's target tile to remain as Pac-Man's position even while in Scatter mode, instead of his regular fixed tile in the upper-right corner. This effectively keeps Blinky in Chase mode permanently, though he will still be forced to reverse direction as a result of a mode switch. When in this enhanced state, Blinky is generally referred to as "Cruise Elroy", though the origin of this term seems to be unknown. Not even the almighty Pac-Man Dossier has an answer here. If Pac-Man dies while Blinky is in Cruise Elroy mode, he reverts back to normal behavior temporarily, but returns to Elroy mode as soon as all other ghosts have exited the ghost house.

The Pink Ghost

The pink ghost's targeting method

The pink ghost starts inside the ghost house, but always exits immediately, even in the first level. His nickname is "Pinky", and his personality is described as speedy . This is a considerable departure from his Japanese personality description, which is 待ち伏せ, machibuse , which translates as "ambusher". The Japanese version is much more appropriate, since Pinky does not move faster than any of the other ghosts (and slower than Blinky in Cruise Elroy mode), but his targeting scheme attempts to move him to the place where Pac-Man is going, instead of where he currently is. Pinky's target tile in Chase mode is determined by looking at Pac-Man's current position and orientation, and selecting the location four tiles straight ahead of Pac-Man. At least, this was the intention, and it works when Pac-Man is facing to the left, down, or right, but when Pac-Man is facing upwards, an overflow error in the game's code causes Pinky's target tile to actually be set as four tiles ahead of Pac-Man and four tiles to the left of him. I don't want to frighten off non-programmers, but if you're interested in the technical details behind this bug, Don Hodges has written a great explanation , including the actual assembly code for Pinky's targeting, as well as a fixed version.

Causing the pink ghost's target tile to be behind him

One important implication of Pinky's targeting method is that Pac-Man can often win a game of "chicken" with him. Since his target tile is set four tiles in front of Pac-Man, if Pac-Man heads directly towards him, Pinky's target tile will actually be behind himself once they are less than four tiles apart. This will cause Pinky to choose to take any available turn-off in order to loop back around to his target. Because of this, it is a common strategy to momentarily "fake" back towards Pinky if he starts following closely. This will often send him off in an entirely different direction.

The Blue Ghost

The blue ghost's targeting method

The blue ghost is nicknamed Inky, and remains inside the ghost house for a short time on the first level, not joining the chase until Pac-Man has managed to consume at least 30 of the dots. His English personality description is bashful , while in Japanese he is referred to as 気紛れ, kimagure , or "whimsical". Inky is difficult to predict, because he is the only one of the ghosts that uses a factor other than Pac-Man's position/orientation when determining his target tile. Inky actually uses both Pac-Man's position/facing as well as Blinky's (the red ghost's) position in his calculation. To locate Inky's target, we first start by selecting the position two tiles in front of Pac-Man in his current direction of travel, similar to Pinky's targeting method. From there, imagine drawing a vector from Blinky's position to this tile, and then doubling the length of the vector. The tile that this new, extended vector ends on will be Inky's actual target.

As a result, Inky's target can vary wildly when Blinky is not near Pac-Man, but if Blinky is in close pursuit, Inky generally will be as well. Note that Inky's "two tiles in front of Pac-Man" calculation suffers from exactly the same overflow error as Pinky's four-tile equivalent, so if Pac-Man is heading upwards, the endpoint of the initial vector from Blinky (before doubling) will actually be two tiles up and two tiles left of Pac-Man.

The Orange Ghost

The orange ghost's distant targeting method

The orange ghost, "Clyde", is the last to leave the ghost house, and does not exit at all in the first level until over a third of the dots have been eaten. Clyde's English personality description is pokey , whereas the Japanese description is お惚け, otoboke or "feigning ignorance". As is typical, the Japanese version is more accurate, since Clyde's targeting method can give the impression that he is just "doing his own thing", without concerning himself with Pac-Man at all. The unique feature of Clyde's targeting is that it has two separate modes which he constantly switches back and forth between, based on his proximity to Pac-Man. Whenever Clyde needs to determine his target tile, he first calculates his distance from Pac-Man. If he is farther than eight tiles away, his targeting is identical to Blinky's, using Pac-Man's current tile as his target. However, as soon as his distance to Pac-Man becomes less than eight tiles, Clyde's target is set to the same tile as his fixed one in Scatter mode, just outside the bottom-left corner of the maze.

The orange ghost's targeting mode switching

The combination of these two methods has the overall effect of Clyde alternating between coming directly towards Pac-Man, and then changing his mind and heading back to his corner whenever he gets too close. On the diagram above, the X marks on the path represent the points where Clyde's mode switches. If Pac-Man somehow managed to remain stationary in that position, Clyde would indefinitely loop around that T-shaped area. As long as the player is not in the lower-left corner of the maze, Clyde can be avoided completely by simply ensuring that you do not block his "escape route" back to his corner. While Pac-Man is within eight tiles of the lower-left corner, Clyde's path will end up in exactly the same loop as he would eventually maintain in Scatter mode.

Wrapping Up

If you've made it this far, you should now have a fairly complete understanding of the logic behind Pac-Man's ghost movement. Understanding the ghosts' behavior is probably the single most important step towards becoming a skilled Pac-Man player, and even a general idea of where they are likely to move next should greatly improve your abilities. I've never been good at Pac-Man, but while I was researching this article and testing a few things, I found that I was able to avoid the ghosts much more easily than before. Even small things make a huge difference, such as recognizing a switch to Scatter mode and knowing that you have a few seconds where the ghosts won't (deliberately) try to kill you.

Pac-Man is an amazing example of seemingly-complex behavior arising from only a few cleverly-designed rules, with the result being a deep and challenging game that players still strive to master, 30 years after its release.

  • The Pac-Man Dossier , Jamey Pittman - practically the only source you need for anything related to Pac-Man. I did some original research to confirm a few statements here and there, but honestly, most of this article is just rearranged and reworded from Jamey's amazing work on the Dossier. Highly recommended reading if you enjoyed this article and would like to learn about the other aspects of the game.
  • Pac-Man's Ghost Behaviour Analyzed and Fixed , Don Hodges - explanation of Pinky and Inky's targeting bug and some of the relevant Z80 assembly code.
  • All Toru Iwatani quotes come from an interview in Programmers at Work by Susan M. Lammers. The entire interview is available online here .

All Pac-Man Ghost Names and What They Do

  • July 5, 2022
  • Jason Brown

pac-man ghosts

Who are the ghosts who chase Pac-Man through mazes, across Pac-Land and even over Pac-Man World? Let’s find out as we check all Pac-Man ghost names – and what they do!

Table of Contents

Who are the Pac-Man ghosts?

There are four ghosts in the original Pac-Man (which we rated as top of the best Pac-Man games !): a red ghost, a pink ghost, a cyan ghost and an orange ghost.

Do they all behave differently?

They sure do! Considering Pac-Man was originally released in 1980, it may surprise you to learn that each ghost in Pac-Man has their own behaviour and patterns that they follow, as well as behaviour that they adhere to during what’s known as ‘scatter mode’. All of this are things that you may not even notice during play, but we’re here to shine a light on each ghost and reveal what it is they do!

Who is the red ghost in Pac-Man?

Blinky - Pac-Man Ghost

According to one of the attract screens on the English language version of the arcade game, the red ghost is named Shadow – and his nickname is Blinky.

For some reason, it’s the nicknames that stuck with the ghosts, so in general, this one is just known as Blinky. Blinky is perhaps the leader of what’s known as the Ghost Gang; he’s definitely the most deadly ghost – and almost certainly the most likely to catch our little yellow hero. 

What pattern does Blinky follow?

Unlike the others, Blinky speeds up as Pac-Man eats more dots in the maze. With 20 dots remaining in the first maze, Blinky gets faster – but in subsequent mazes, he speeds up even sooner. He’s a very tough enemy to outrun, especially as he follows Pac-Man closely once he’s on his trail – and doesn’t even cease his relentless pursuit during periods when the other ghosts enter scatter mode.

Who is the pink ghost?

Pinky - Pac-Man Ghost

Oddly – despite Blinky being the ghost known to speed up – the pink ghost’s ‘real’ name is Speedy. However, she’s more commonly known by her nickname, Pinky. Like the other ghosts, she has her own, very specific patterns of movement.

What pattern does Pinky follow?

Pinky moves around maze walls in an anti-clockwise pattern, but also roughly follows Pac-Man’s movement – targeting four spaces ahead of where the player is headed, which is designed to get out in front of them and cut them off. During scatter mode, Pinky heads for the top left corner and moves in an anti-clockwise, circling motion around the corner walls.

Who is the cyan ghost?

Inky - Pac-Man Ghost

The cyan ghost’s ‘official’, original English-language name was Bashful, but his nickname – and like the others, the name he’s known by now – is Inky. The most unpredictable of the four ghosts, Inky is dangerous because you can’t always know exactly what he’s going to do next!

What pattern does Inky follow?

This is a strange one – though unpredictable, Inky’s behaviour is actually linked to the position of the Ghost Gang’s leader, Blinky. He’ll patrol an area dependent on where Blinky is at any given time – and will become more random the further away from Blinky he is. During scatter mode, Inky will patrol the lower right corner of the maze. You know those moments where you get trapped between two ghosts and can’t get away? That’ll usually be Inky and his random behaviour getting you cornered!

Who is the orange ghost?

Clyde - Pac-Man Ghost

Pokey – more commonly known as Clyde – is the one ghost whose name doesn’t rhyme with the others. Poor Clyde – always the outsider! His behaviour reflects this too, cleverly – unlike the others, he just doesn’t seem to have much interest in chasing Pac-Man.

What pattern does Clyde follow?

Though Clyde does chase Pac-Man (in much the same way as Blinky), when he gets within eight spaces of Pac-Man, he starts to retreat into the bottom-left corner of the maze. This is also the area he patrols during scatter mode, making the bottom left Clyde’s Corner!

How do you fight back against the ghosts?

Frightened or Vulnerable Blue Ghost - Pac-Man

There are four Power Pellets in the maze; when Pac-Man eats one, the ghosts turn temporarily blue – signifying that they can be eaten by the hero! This last for just a short time; the ghosts start flashing between blue and white to demonstrate that they are about to turn back to their normal, dangerous colours – in later levels, the period of time to get your revenge is so brief as to be almost imperceptible. 

How does this affect their movement?

When a Power Pellet is eaten, the ghosts immediately change their movement patterns, regardless of whether they were in their pursuit or scatter modes. They immediately move away from Pac-Man’s position – and at a much slower speed than normal. Other than that initial reversal of chasing Pac-Man, their movement is randomly decided at each intersection they reach. This gives Pac-Man some valuable breathing room to clear dots from the maze – or get his revenge if the ghosts are close enough!

What happens to the ghosts when Pac-Man eats them?

If Pac-Man does eat them, only the ghost’s eyes remain – and they immediately race back to the pen at the centre of the maze, where they regenerate and re-emerge. It’s important to note that they regenerate and return immediately This means that, even if the effects of the Power Pellet are still in play for the other ghosts, it’s possible to have a fully regenerated, non-blue, dangerous ghost (or ghosts) on your tail – as well as having blue ghosts simultaneously running from you!  

Are there other ghosts?

pac man going through ghosts

There’s quite a few! Later Pac-Man games introduced new ghosts or simply replaced poor, neglected Clyde. For example, the orange ghost in Ms. Pac-Man is Sue, though her behaviour and appearance are the same as Clyde. To differentiate between them, Sue became purple in later games (and the short-lived, mostly forgotten, animated TV show from 1982). Tim is the name of the orange ghost in Jr. Pac-Man – but again, it’s basically just Clyde with a different name!

Pac-Mania added two new ghosts to Pac-Man’s rogue gallery: Funky and (ahem) Spunky. Funky was a green ghost and Spunky was grey; their only other appearances were in Pac-Man 256 – though they behaved very differently there. Pac-Man 256 also introduced the scary, teleporting Glitchy!

There are many more – especially in Pac-Man and the Ghostly Adventures, which originated as a CGI cartoon. This had a huge cast of individual ghosts with their own characters and very distinct visual characteristics – but the most iconic, famous ghosts remain the four originals from the Ghost Gang: Blinky, Pinky, Inky and Clyde!

This article may contain affiliate links. If you use these links to purchase an item we may earn a commission. Thank you for your support.

Jason Brown

Jason – who lives in the UK – has had a lifelong interest in video games, which all started when he discovered Space Invaders in the early 80s. The first game he ever completed was Wonder Boy in Monster Land on the Sega Master System – which remains one of his proudest gaming achievements. Jason is a passionate writer – and has been writing about gaming since the late 90s. He currently runs pop culture blog midlifegamergeek.com, which he updates on a daily basis (and has written more than 700 articles on the blog alone!).

Outside of video games, Jason is a keen tabletop gamer, film buff and comic book fan.

You May Also Like

best mage gear osrs

8 Best Mage Gear In OSRS In 2023

  • October 3, 2023
  • Jacob Woodward

pac man going through ghosts

What Can A Hacked Nintendo Switch Do?

  • Theo Litston

best ps1 jrpgs

10 Best PS1 JRPGs Of All Time

  • September 28, 2023

best food pokemon

10 Best Food Pokemon Of 2023

  • September 26, 2023

how to evolve feebas pokemon scarlet violet the teal mask

How to Evolve Feebas in Pokemon Scarlet & Violet The Teal Mask

  • September 21, 2023

how to evolve poliwhirl into politoed pokemon scarlet violet the teal mask

How to Evolve Poliwhirl into Politoed in Pokemon Scarlet & Violet The Teal Mask

how to start the teal mask pokemon scarlet violet

How to Start The Teal Mask DLC For Pokemon Scarlet & Violet

  • September 19, 2023

how to evolve applin into dipplin

How to Evolve Applin Into Dipplin in Pokemon Scarlet & Violet The Teal Mask

  • September 15, 2023

Input your search keywords and press Enter.

How Do the Ghosts in PAC-MAN Decide Where to Go?

According to Iwatani, all of the ghosts in Pac-Man have their own distinct personality which influences the movements they make. This was a deliberate choice Iwatani made very early on in the game’s development so that, as he said, “they weren’t all just chasing after Pac-Man in single file, which would have been tiresome and flat.”

In fact, only one of the ghosts in Pac-Man actually directly chases the titular hero, Blinky (the red ghost), while the rest have movements that don’t go directly for Pac-Man, but are influenced by Pac-Man’s current position on the screen. You see, the Pac-Man game-board is normally separated into a grid consisting of multiple 8 pixel by 8 pixel squares, known as tiles, with the tile Pac-Man currently resides in generally being the thing used by the ghosts to determine which direction they will go after they transition to a new tile.

In regards to Blinky, along with being the only ghost to actively pursue Pac-Man directly in-game, he’s also the only ghost not  to begin each round inside the small holding pen in the middle of the screen (known by fans as “the ghost house”).

Put simply, Blinky is programmed to target whichever tile Pac-Man currently occupies, giving the illusion that he’s chasing the player. As the game progresses, Blinky’s speed increases to the point that he becomes marginally faster than Pac-Man at which point he becomes what fans refer to as “Cruise Elroy”. The exact number of dots you need to consume for Blinky to become Cruise Elroy depends on which level you’re currently playing, with the overall number dropping the further you get into the game to the point that he will assume Cruise Elroy form when there are still 60 dots left on screen. Blinky will momentarily cease being Cruise Elroy whenever the player loses a life.

As for where the name Cruise Elroy comes from, despite being ingrained as part of Pac-Man lore, nobody seems to know. In the original arcade game, Blinky’s official name is “ Shadow ” alluding to the fact that he is almost always right behind the player. In the Japanese version, his personality is described as “ oikake ” which roughly translates to “ chaser “.

The Pink ghost, known as Pinky, is programmed to try and land on the space 16 pixels (or two tiles in front) of Pac-Man to ambush him. However, due to “overflow error” in the game’s code, if Pac-Man is facing upwards, Pinky will instead attempted to land on the space 4 tiles in front of him and 4 tiles to the left.  Interestingly, because Pinky is programmed to always be ahead of Pac-Man, you can usually make her stop chasing you by heading straight for her.

In the English arcade version of the game, Pinky is known as “Speedy” which many believe is a mistake, since Blinky is the only ghost who can travel faster than the player. However, in the game Super Smash Bros , this apparent misnomer is clarified as follows : “A pink ghost that strategically targets Pac-Man in the Pac-Man series. She’s also known as Speedy, as she can anticipate Pac-Man’s moves and get ahead of him quick enough to ambush him.”

In the Japanese version of the game, Pinky’s personality is described as “ machibuse ” which fittingly translates to “ ambusher “.

The blue ghost, known as Inky, has what has been described as one of the more difficult ghosts to avoid for seasoned players, because his movements appear more erratic than the others. You see, Inky’s movements are determined by both the relative position of Pac-Man and  Blinky.

In a nutshell, Inky will try to move to a tile that is calculated by taking the tile two spaces ahead of Pac-Man and doubling the distance Blinky is away from it. Similar to Pinky, if Pac-Man is facing upwards, this tile will be two tiles ahead of Pac-Man and two tiles to the left. Because of this comparatively complex targeting method, Inky’s movement’s fluctuate a bit, making his English name “ Bashful ” rather appropriate. In the Japanese version, Inky’s personality is described as “ k imagure ” which roughly translates to “ Fickle ” as a nod to his indecisive movements.

As for the final, orange ghost, known as Clyde, his movements are based on how far away he currently is from Pac-Man. Whenever Clyde is more than 8 tiles away from Pac-Man, his movements are identical to that of Blinky’s, in that he will actively attempt to move towards whichever tile Pac-Man is currently occupying.  However,  as soon as Clyde comes within 8 tiles of the circular hero, he will attempt to flee to the bottom left portion of the screen and hide there.

In the English version of the game, Clyde is described as “Pokey”, alluding to his seeming stupidity. In the Japanese version, Clyde comes out a little better, with his personality being listed as “ otoboke ” or “ feigning ignorance “.

Along with this, the ghosts also have three possible modes that they can be in at any one time, Chase Mode, Scatter Mode and Frightened Mode. In chase mode, the ghosts will move exactly as previously described. After a few seconds of gameplay (with the exact amount varying depending on the current level), the ghosts will enter what is known as Scatter Mode, where they will all flee to a different corner of the map, with Blinky heading for the top right, Pinky heading for the top left, Inky heading for the bottom right and Clyde heading for the bottom left.

During Scatter Mode, each ghost’s individual target tile is placed just outside of their respective favourite corner, causing them to endlessly move in circles. The ghosts can only enter Scatter Mode a maximum of 4 times in a given life or level, at which point they’ll enter Chase Mode indefinitely.

As for Frightened Mode, this occurs whenever Pac-Man eats a Power Pellet and is characterised by all of the ghosts turning blue and running away, at which point Pac-Man can eat them. Upon entering Frightened Mode, all of the ghosts will immediately reverse direction and upon reaching a corner, a “psuedo-random number generator” will decide the direction they turn at that point. After Frightened Mode ends, the ghosts will continue with whatever they were doing before. Annoyingly, after moving past level 20, Power Pellets will no longer cause ghosts to become blue.

All of these factors combine to make the four ghosts incredibly difficult to avoid for newer players at higher levels, meaning the game provides a continuous challenge for all but the most skilled aficionados, who can abuse the ghost’s rudimentary AI to move unimpeded around the maps. The master of this sort of thing is Billy L. Mitchell, who is often hailed as the greatest arcade game player of all time- among many other arcade game records being the first to achieve a perfect Pac-Man score of 3,333,360, doing so on July 3, 1999. How does one achieve that score? Simply by managing to eat every dot, bonus, energizer, and ghost on every single level (255 full levels, with a 256th that can’t be completed due to a bug in the game) without ever having Pac-Man die.

If you liked this article, you might also enjoy our new popular podcast, The BrainFood Show ( iTunes , Spotify , Google Play Music , Feed ), as well as:

  • The Development of the Video Game “Pong” was a Training Exercise for a New Gaming Developer at Atari and Wasn’t Originally Intended to Be Released
  • The Origin of the Legend of Zelda
  • How the Gun on the Original Duck Hunt Game Worked
  • The Surprisingly Long History of Nintendo
  • The Rights to Tetris Were Originally Owned by the Soviet Union

Bonus Facts:

  • Billy L. Mitchell also was the first known person to achieve more than one million points in Donkey-Kong; the most recent to achieve a score greater than 10 million in Centipede; and for a time held the record for points in Donkey Kong Jr. at 857,300 and then beat that score in 2010, upping it to 1,270,900. On the same weekend in July that year, he also reclaimed the world record in Donkey Kong at 1,062,800. This list goes on and on and on.
  • Pac-Man was originally going to be called “Puck-Man” but was changed at the last minute because Western arcade owners were worried people would scratch out part of the P in Puck-Man so that it would say something less than family friendly
  • The ghosts in Pac-Man always  leave the ghost house to the left, however, due their programming, they can immediately change direction as soon as leaving depending on where you are.
  • In some levels of the game there are “Safe Zones” on the maps where you can hide and, due to the ghost’s programming, will never be caught. Players trying to achieve the maximum score (which takes upwards of three hours of continuous play) often make use of these to rest during marathon sessions.
  • Although the ghosts can sometimes move faster than Pac-Man, for example, Blinky when he becomes Cruise Elroy, Pac-Man can always theoretically outrun them because he can turn corners instantly, whereas the ghosts must stop for a brief moment, turn and then continue moving.
  • The Pac-Man Dossier
  • Understanding Pac-Man Ghost Behavior
  • Ghost Psychology
  • Blinky, Inky, Pinky, and Clyde: A small onomastic study
  • Five things you never knew about Pac-Man
  • The Art of Video Games: From Pac-Man to Mass Effect
  • Image Source
  • Entertainment

One comment

' src=

Tonight I found out new words; unimpeded & aficionados. These two words make me want to be an unimpeded aficionade.

Destructoid

An explanation of how Pac-Man’s ghosts work

pac man going through ghosts

Most boring headline ever, right? Maybe a bit out of date too? I mean, Pac-Man is a bit old by now so why talked about how the ghosts in the game work? Mostly because it’s an amazing reminder of how simple programming often works better than complex rules, and a great example of how little details are so insanely important to how we interact with games.

You can read the excerpt from Game Internals write up below. I find it so interesting to actually look how games function and how the tiny details are so important. Most of the times you just sit down and play a game for fun, but if you look at it while you play it’s ingenious how developers let us learn the rules of the world with tiny visual cues that we barely notice. Those developers are smart guys. The full article is a really interesting read if you’re looking for something to do.

Or you can just read Ashley Davis’s awesome piece on it.

Understanding Pac-Man Ghost Behavior [GameInternals, via Boing Boing ]

The next step is understanding exactly how the ghosts attempt to reach their target tiles. The ghosts’ AI is very simple and short-sighted, which makes the complex behavior of the ghosts even more impressive. Ghosts only ever plan one step into the future as they move about the maze. Whenever a ghost enters a new tile, it looks ahead to the next tile that it will reach, and makes a decision about which direction it will turn when it gets there. These decisions have one very important restriction, which is that ghosts may never choose to reverse their direction of travel. That is, a ghost cannot enter a tile from the left side and then decide to reverse direction and move back to the left. The implication of this restriction is that whenever a ghost enters a tile with only two exits, it will always continue in the same direction. However, there is one exception to this rule, which is that whenever ghosts change from Chase or Scatter to any other mode, they are forced to reverse direction as soon as they enter the next tile. This forced instruction will overwrite whatever decision the ghosts had previously made about the direction to move when they reach that tile. This effectively acts as a notifier to the player that the ghosts have changed modes, since it is the only time a ghost can possibly reverse direction. Note that when the ghosts leave Frightened mode they do not change direction, but this particular switch is already obvious due to the ghosts reverting to their regular colors from the dark blue of Frightened. So then, the 1/60-of-a-second Scatter mode on every level after the first will cause all the ghosts to reverse their direction of travel, even though their target effectively remains the same. This forced direction-reversal instruction is also applied to any ghosts still inside the ghost house, so a ghost that hasn’t yet entered the maze by the time the first mode switch occurs will exit the ghost house with a “reverse direction as soon as you can” instruction already pending. This causes them to move left as usual for a very short time, but they will almost immediately reverse direction and go to the right instead.

pac man going through ghosts

Filed under... #Pac-Man #retro

I'm A Useless Info Junkie

This Is How Pac-Man Ghosts Are Programmed To Move

pac man going through ghosts

Avoiding the ghosts in a game of Pac-Man is essential for your success in the game. But, what if you had advanced knowledge of their movements. What if you knew how they are programmed to move?

Well, now you do.

The four ghosts in the game Pac-Man, are each programmed to act differently. Blinky , the red ghost, chases you . Pinky , the pink ghost, simply tries to position herself in front of Pacman , Inky , the blue ghost tries to position himself in the same way as Pinky and Clyde , the orange ghost, moves randomly. (the article continues after the ad)

If you’d like to know more about the programming rules behind Pac-Man, Jamey Pittman’s The Pac-Man Dossier provides a thorough and fascinating explanation.

If you like what you read, then you will definitely love this one:  Which Is The Best-Selling Video Game Of All Time?  

Photos: Mental Floss, PacMan – Ghostly Adventures – Home Photoshop: I’m A Useless Info Junkie Widget not in any sidebars

pac man going through ghosts

The Time Coca-Cola Tried To Sell Bottled Water At A Premium Price Which Happened To Be Tap Water

pac man going through ghosts

The Time When Russia Hilariously Tried To Make An Exact Clone Of A Defective US B-29 Bomber

Copyright © I'm A Useless Info Junkie.

pac man going through ghosts

Ad Blocker Detected!

Privacy overview.

PBS Explains How Pac-Man's Ghosts Think And Behave

Everyone knows Pac-Man, but not everyone knows that its ghosts possess a little more intelligence than you might think — Game/Show by PBS has all the details.

It's safe to say that pretty much anyone reading this site is familiar with Pac-Man . He's one of the most recognizable characters around, not to mention the immense popularity of his much-ported arcade debut and the fact that his more recent starring roles are still received relatively warmly .

Some parts of the Pac-Man  legend are relatively well-known — for instance, his origins as Puck-Man, a name that was later changed to avoid crude vandalism — but the complexity of the ghosts that are tasked with preventing Pac-Man from successfully eating his fill of pellets and fruit is something that frequently flies under the radar.

Thankfully, this week's edition of PBS Game/Show sees Jamin Warren break down just why the ghosts are so impressive. Each of the four spirits that you're up against has its own individual strategy to take down Pac-Man , and their tactics are perhaps better thought out than you might expect from a game that was released to arcades by Namco some 35 years ago.

For instance, Blinky — known as 'Shadow' in the Japanese version of the game — will head straight for Pac-Man no matter where he is in the maze, following him as closely as his Japanese moniker would suggest. Pinky, on the other hand, is referred to as 'Ambusher' in Japan, and as such will try and predict where the player will go by heading for a position four tiles ahead of Pac-Man .

Inky and Clyde have similarly unique stratagems that Warren analyses in the video, and the whole thing is enough to make you think a little more about what we expect from enemy AI in games. The intelligence of computer-controlled opposition in a game is a difficult thing to judge, as proven by the amount of players who can't tell the ghosts of Pac-Man apart — and that can make it a difficult thing to properly evaluate.

Last year saw The Lord of the Rings: Shadow of Mordor tout its Nemesis system as a potentially game-changing feature , and it wouldn't be too surprising to see more titles try  a similar tactic. As graphical advancements taper off, developers will have to find new was to set themselves apart from the pack, and improved AI could be a prime candidate — and perhaps we have Pac-Man to thank for that.

Sleeping Ghosts

  • View history

Sleeping Ghosts ( 眠っている幽霊 Nemutte iru yūrei ) are ghosts found only in Pac-Man Championship Edition DX , 2 , and Pac-Man 99 . They are stationary when sleeping but will be woken up when Pac-Man passes somewhere near them. They will then form a Ghost Train with any other ghosts that are awake.

59

IMAGES

  1. Pac-Man and the Ghostly Adventures screenshots

    pac man going through ghosts

  2. How to pass through ghosts

    pac man going through ghosts

  3. The Pac Man Ghosts By

    pac man going through ghosts

  4. The Pac-Man Ghosts by T-Newton on DeviantArt

    pac man going through ghosts

  5. Pacman ghosts by Zairaam on DeviantArt

    pac man going through ghosts

  6. Ghosts chasing Pac-Man wallpaper

    pac man going through ghosts

VIDEO

  1. Pac-Man Rescues Ms.Pac Man From 3 Ghosts

  2. Pac-Man 2

  3. New Pacman Story (Ghost Huntings Pacman)

  4. Pac-Man Ghosts are ALIVE???

  5. Pac Man vs. The Ghosts! (this is for a school project)

  6. Did you know the Pac Man ghosts all did different things? #GamingFacts #pacman #retrogaming

COMMENTS

  1. Passing Through Ghosts in Pac-Man

    10 MIN READ Featured Blog Passing Through Ghosts in Pac-Man Details on Pac-Man's little-known ghost passthrough bug and why it happens, an excerpt from the book Bug Voyage in the current Rogue Souls Storybundle. John Harris Contributor March 28, 2017 PDF

  2. How to Run through a Ghost in Pac-Man

    How to Run through a Ghost in Pac-Man ExpertVillage Leaf Group 3.6M subscribers Share 2.5K views 2 years ago How to Run through a Ghost in Pac-Man. Part of the series: How to Play...

  3. When can you go through Pacman ghosts?

    When can you go through Pacman ghosts? « on: July 20, 2007, 04:44:26 pm » I was playing Pacman (Midway) the other day and doing a mid-fruit pattern on the second orange (or peach) level. I screwed up the pattern but didn't realize it and continued to mindlessly follow the pattern along.

  4. How to pass through ghosts

    April 12, 2021 12:30 AM 1 Unlike ghosts in real life, ghosts in PAC-MAN 99 cannot be walked through. These things will either kill PAC-MAN as soon as he touches them, or if he's eaten...

  5. Up Your Pac-Man Game by Learning the Different Strategies of Each Ghost

    Here's a brief look at the rules behind Pac-Man's ghosts. CHASING AND SCATTERING. When a new game of Pac-Man begins, only one ghost is present in the maze: the red one, Blinky. Gradually, more ...

  6. GameInternals

    This task is made difficult by four ghosts that pursue Pac-Man through the maze. If Pac-Man makes contact with any of the ghosts, the player loses a life and the positions of Pac-Man and the ghosts are reset back to their starting locations, though any dots that were eaten remain so.

  7. All Pac-Man Ghost Names and What They Do

    July 5, 2022 Jason Brown Who are the ghosts who chase Pac-Man through mazes, across Pac-Land and even over Pac-Man World? Let's find out as we check all Pac-Man ghost names - and what they do! Table of Contents Who are the Pac-Man ghosts?

  8. How Do the Ghosts in PAC-MAN Decide Where to Go?

    The Pink ghost, known as Pinky, is programmed to try and land on the space 16 pixels (or two tiles in front) of Pac-Man to ambush him. However, due to "overflow error" in the game's code, if Pac-Man is facing upwards, Pinky will instead attempted to land on the space 4 tiles in front of him and 4 tiles to the left.

  9. Pac-Man

    Pac-Man, originally called Puck Man in Japan, is a 1980 maze action video game developed and released by Namco for arcades.In North America, the game was released by Midway Manufacturing as part of its licensing agreement with Namco America. The player controls Pac-Man, who must eat all the dots inside an enclosed maze while avoiding four colored ghosts.. Eating large flashing dots called ...

  10. Ghosts

    Latest appearance Pac-Man World Re-Pac (2022) Leader (s) Blinky (Founder of the Ghost Gang and Leader of the Ghost Land when he meets Pac-Man) Ghost Witch of Netor (Commanded the ghosts during Pac-Man 2: The New Adventures) Spooky ( Pac-Man World series) (Leader of the Ghosts in Ancient Times.

  11. I passed through a ghost, can someone explain how it happened ...

    You can't really dodge ghosts that way since all Pac-Man does it move diagonally toward the next tile, he still occupies the tile and will get caught. What is happening when you 'corner skip' is the exact same thing, just happening with the tiles at a corner.

  12. An explanation of how Pac-Man's ghosts work

    Understanding Pac-Man Ghost Behavior [GameInternals, via Boing Boing] [ Image] The next step is understanding exactly how the ghosts attempt to reach their target tiles. The ghosts' AI is...

  13. Ghost Island

    Ghost Island (ゴーストアイランドGōsuto Airando) is the home of the Ghosts first introduced in Pac-Man World. It is often portrayed with a spooky, Halloween-like aesthetic, featuring haunted houses, graveyards, and naturally, lots of ghosts. In Pac-Man World, Pac-Man comes here after hearing of his family and friends being kidnapped, and to defeat the devious Toc-Man. He gets here by ...

  14. This Is How Pac-Man Ghosts Are Programmed To Move

    The four ghosts in the game Pac-Man, are each programmed to act differently. Blinky, the red ghost, chases you. Pinky, the pink ghost, simply tries to position herself in front of Pacman, Inky, the blue ghost tries to position himself in the same way as Pinky and Clyde, the orange ghost, moves randomly. (the article continues after the ad)

  15. How Frightened Ghosts Decide Where to Go

    How do the frightened ghosts in Pac-Man decide where to move? It's all explained right here.LINKSSupport the channel on Patreon: https://www.patreon.com/rgme...

  16. Inky

    Inky (インキー Inki), also known as Aosuke, is one of the four main ghosts in the Pac-Man series. He is often depicted as a goofy and slow-headed ghost, not pursuing Pac-Man unless other ghosts are near. He is good friends with Blinky, Pinky, and Clyde. While originally one of the main antagonists in the first Pac-Man arcade game, his role has changed to being an ally in recent iterations ...

  17. Passing Through Ghosts in Pac-Man (2023)

    Passing Through Ghosts in Pac-Man (2023) This is an excerpt from my book Bug Voyage: A Tour of Classic Game Glitches, available in the current Rogue Souls Storybundle. The book also contains information on pseudorandom number generation, doing low-level math in binary and decimal, and how you can crash any Galaga machine without even putting ...

  18. How to go Through Ghosts in (Arcade) Ms. Pac-Man

    0:00 / 0:45 How to go Through Ghosts in (Arcade) Ms. Pac-Man 0978smb 1.54K subscribers Subscribe 7 Share 3.9K views 13 years ago Sorry about the screw-up in the beginning. Show more Show...

  19. PBS Explains How Pac-Man's Ghosts Think And Behave

    PBS Explains How Pac-Man's Ghosts Think And Behave. By GR Staff. Published Feb 4, 2015. Everyone knows Pac-Man, but not everyone knows that its ghosts possess a little more intelligence than you ...

  20. Clyde

    Clyde (クライド Kuraido), also known as Guzuta, is one of the four main ghosts in the Pac-Man series. While the other three ghosts are off chasing Pac-Man, Clyde will be off doing his own thing. He is typically portrayed as the least intelligent and most submissive ghost. He is good friends with Blinky, Pinky, and Inky. While originally one of the main antagonists in the first Pac-Man ...

  21. How To Program The Ghosts In Pacman

    There are many different ways to create a Pacman ghost algorithm in C++. One popular method is to use a priority queue. This allows the ghosts to be placed in a queue based on their priority, and then the algorithm can be run to determine the best path for the ghosts to take. Another common method is to use a state machine.

  22. Sleeping Ghosts

    Sleeping Ghosts ( 眠っている幽霊 Nemutte iru yūrei) are ghosts found only in Pac-Man Championship Edition DX, 2, and Pac-Man 99. They are stationary when sleeping but will be woken up when Pac-Man passes somewhere near them. They will then form a Ghost Train with any other ghosts that are awake. This article is a stub.

  23. The Different Movement Patterns Of Pac-Man's Ghosts

    These names were created by Toru Iwatani, the game's designer. Blinky is the red ghost, Pinky is the pink ghost, Inky is the blue ghost, and Clyde is the orange ghost. Pac-man Ghost House. A Pac-Man ghost house is a type of game in which the player must navigate through a maze while avoiding ghosts. The goal is to reach the end of the maze ...