A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: PacMan experiment

  1. #1
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756

    PacMan experiment

    http://mad-sci.lazoom.com/tutorials/pac.swf

    the cool thing is that there are 250 movie clips as tiles on the stage and as you see no delay. the movie runs at 40fps. The AI is still buggy but you can move arround, eat pills...



    ms

  2. #2
    Member
    Join Date
    Aug 2002
    Location
    neverneverland
    Posts
    46
    thats a pretty cool game, but i let the guy eat me and he just kept walking over me but i didnt die. i guess youre not finished yet.

    how do you make AI? is there a good tutorial on it?
    still thinking of a footer

  3. #3
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    AI ? simple you have to think like a ghoust


    if ( currant_dir=="left"){

    if (pac man is above me and I can move up ){moveUp;dir="up";}else
    if (pacman is below me and I can move down ){moveDown;dir="down";}else
    if (I can still move left ){moveleft;dir="left";}else
    if (I can move up ){moveup;dir="up";}else
    if (I can move down ){moveDwown;dir="down";}
    }else
    if ( currant_dir=="right"){etc..etc..}

    just describe the desion making,

    ms

  4. #4
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Nice game. Found a few bugs though. After a while pacman can walk half way through walls and the ghost can walk outside the map other then that nice game.

  5. #5
    Senior Member devnull_2k's Avatar
    Join Date
    Oct 2001
    Location
    Limehouse, Ontario - Never heard of it? Not surprised.
    Posts
    785
    How did you manage to get it running so quickly?
    The future belongs to those who prepare for it today.

  6. #6
    Who needs pants? hooligan2001's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere
    Posts
    1,976
    Btw does your game only consist of one tile? Just a blue one? Or is it totally tile based ?

  7. #7
    Cats Moo!
    Join Date
    May 2000
    Location
    Boonies
    Posts
    148
    Mad-Sci! I missed ya buddy You need to add me to your MSN messenger sometime again My e-mail addy is ChristopherMichael13@hotmail.com
    Pac-man looks very good. Few bugs, but fixable
    -ChriSell

  8. #8
    Illuminatus! fospher.com's Avatar
    Join Date
    Jan 2002
    Location
    5th Dimension
    Posts
    2,185
    haha, great stuff there mad. i loved outsmarting your ghost and running away from it. this is the best pacman ghost ive seen so far in flash.

  9. #9
    leight.com.au leight's Avatar
    Join Date
    Sep 2002
    Location
    australia
    Posts
    1,437
    he he thats heaps kool!!! yeh i noticed a bug too... u try and go through the left gap and come out the other side but it kinda doesnt work:S it just stays there and flashes:s neway kool game!!!
    cya...

  10. #10
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Originally posted by hooligan2001
    Btw does your game only consist of one tile? Just a blue one? Or is it totally tile based ?
    Totaly not realy the maze is one movie clip + 240 pill MC, 1 pac , 2 ghosts. The collisions are run with the MassCollision detection script I posted a long time ago..I think was in the maths and phys forum..
    http://www.flashkit.com/board/showth...hreadid=280716
    ms
    Last edited by Mad-Sci; 04-09-2003 at 08:54 AM.

  11. #11
    Junior Member
    Join Date
    May 2002
    Posts
    0
    nice game . yeah, Pac-man used to be called Puck-man, wanna guess why they changed it?

  12. #12
    Senior Member mbenney's Avatar
    Join Date
    Mar 2001
    Posts
    2,744
    well it was very easy to grafetti the arcade machines to make it say '****-man'

  13. #13
    Junior Member
    Join Date
    May 2002
    Posts
    0
    yup!

  14. #14
    Senior Member
    Join Date
    Jan 2001
    Posts
    361
    nice mad-sci, very nice, i remember some of your original pac-man experiments, this one is super clean, keep it up.
    Foot...errr.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center