# I'm making a pacman game

**URL:** <https://forum.kirupa.com/t/im-making-a-pacman-game/186235>\
**Category:** Uncategorized\
**Created:** [April 19, 2006, 11:59pm UTC](https://forum.kirupa.com/t/im-making-a-pacman-game/186235 "2006-04-19T23:59:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![E\_108\_r](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@E\_108\_r](https://forum.kirupa.com/u/E_108_r)\
**Post date:** [April 19, 2006, 11:59pm UTC](https://forum.kirupa.com/t/im-making-a-pacman-game/186235/1 "2006-04-19T23:59:12Z")

</div>

I need some… a lot of help with programing this.

Does any one know or know where to find the following action scripts?:

Pacman Enemy

Pacman enemies eyes (looks up while moving up, looks down while moving down, ect.

Pacman direction (facing direction of the last arrow key pushed)

Pacman eating items

Pacman eating enemies after eating power circles

Extra life cherries

Character select (to alter pacman, individual ghosts, points, cherries, and power circles)

* * *

I may ask for more help later. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![SNOWmanx](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@SNOWmanx](https://forum.kirupa.com/u/SNOWmanx)\
**Post date:** [April 20, 2006, 12:05am UTC](https://forum.kirupa.com/t/im-making-a-pacman-game/186235/2 "2006-04-20T00:05:20Z")

</div>

Um… wow. That’s like, the whole game. 😛 Well, one way to start this off is to use tiles. I know what its potential is, but I suck at tiles. You can search for tile-based engine tutorials, preferrably “Outside Of Society” (I think) or Tonypa’s. Whichever one has pathfinding. So when you don’t have the “Allghostsshalldiebecausethey’reblue” powerup, make them go to Mr. Pac. If Pac has that powerup, generate random coordinates? Iono. I would help if I could, sorry!

---

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [April 20, 2006, 12:21am UTC](https://forum.kirupa.com/t/im-making-a-pacman-game/186235/3 "2006-04-20T00:21:48Z")

</div>

^Like SNOWmanx said use tiles.

This is actually a very simple game without the pacman enemies. If your new to actionscript i wouldn’t try to create it it envolves a lot of script, but what do i know.

What you need to learn:

1. MovieClips, frames gotoAndPlay, gotoAndStop, KeyFrames.
2. Array’s and Double Array’s.
3. MovieClip Linkage from Library (F11 to open lib).
4. For loops for placing down moviclip tiles.

```auto
var i = 1;
for(x=0;x<=20;x++){
 for(x=0;x<=20;x++){
  _root.attachMovie("linkage","newlinkagename"+i,i+500);
  _root["newlinkagename"+i]._x = i*x;
  _root["newlinkagename"+i]._y = i*y;
  i++;
 }
}

```

1. hitTest’ing for the units and white dots.
2. Probably using classes its easier to use a prebuilt AI class.

And the use of [google.com](http://google.com) for every easy question you have. or here.

[http://www.thepcmanwebsite.com/media/pacman\_flash/](http://www.thepcmanwebsite.com/media/pacman_flash/)  
play some flash packman so you better understand which i just did for a while.

---

<div class="post-metadata">

**Author:** ![anon1712571](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@anon1712571](https://forum.kirupa.com/u/anon1712571)\
**Post date:** [April 20, 2006, 12:50am UTC](https://forum.kirupa.com/t/im-making-a-pacman-game/186235/4 "2006-04-20T00:50:03Z")

</div>

_ahhhhh multi-dimensional arrays_

---

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [April 20, 2006, 1:56am UTC](https://forum.kirupa.com/t/im-making-a-pacman-game/186235/5 "2006-04-20T01:56:58Z")

</div>

^no multi only doubles… there are only 3 array layers 2 if you arn’t using and array script to move the evil ghost dudes around. And its easier to create the map and place the little circles if you use a double.
