Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How to make a Pac-man Game in Flash CS4 Part 1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
12,220
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 28, 2010

Pac-man Game tutorial in Adobe Flash CS4. This is Part 1 of 4.


Action Script:

Walls:

onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.char._x -= 5;
}
}

Start Button:

on (press) {
gotoAndPlay(2);
}

Frame Code:

stop();

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (keaka070)

  • when i test it my pac man slowly goes through the wall how do i fix this ?

  • @MoonMarshion change the 5 in _root.char._x-=5 to a higher number like 10

see all

All Comments (22)

Sign In or Sign Up now to post a comment!
  • when i try it by pressing enter it flashes and then goes off.. how can i fix this????????

  • @Cosmographia83

    make 4 walls but they all must be same symbol.

    Change coordinates:

    Roof: _y +=10;

    Floor: _y -=10;

    RightWall: _x -=10;

    LeftWall: _x +=10;

  • I changed the higher number of root.char and I STILL have the problem of my char going through the walls. Help?

  • Flash have such a fucked up way of working...

  • @xZeeeth check if there is any object on top of your text. Your text may be behind it. You can try to create a new layer and put the text on it and lock it. Then place your other text on a different layer(normally you dont have to put text on different layers).

  • Dude, i am trying to kill myself now. Each time i try to make a text and move on it or make another text the other text that I just made just dissapears... Please respond before i go mental

  • @keaka070 Do you think you'd be able to send me a copy of your pac-man game? Please, it would be alot easier for me to learn how you did everything. my email is italianstalion.55.davey@hotmai­l.com (please I beg you)

  • This... isn't pacman. A nutless monkey could make what you just did. I asked for Pacman. Not a shitty yellow circle free roaming with dumbass ghosts that can move DIAGONALLY. WTF! HAVE YOU ACTUALLY PLAYED THE ORIGINAL CLASSIC PACMAN!!?? Namco would be disappointed.

  • asks many work, isn't possible with a tween? :s

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more