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.
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!
^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:
- MovieClips, frames gotoAndPlay, gotoAndStop, KeyFrames.
- Array’s and Double Array’s.
- MovieClip Linkage from Library (F11 to open lib).
- For loops for placing down moviclip tiles.
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++;
}
}
- hitTest’ing for the units and white dots.
- Probably using classes its easier to use a prebuilt AI class.
And the use of google.com for every easy question you have. or here.
http://www.thepcmanwebsite.com/media/pacman_flash/
play some flash packman so you better understand which i just did for a while.
ahhhhh multi-dimensional arrays
^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.