How do I Pacman

0 favourites
  • 5 posts
From the Asset Store
Explore and retrieve all Magical Books from the hidden Orc's Lair in this "PacMan-styled" game.
  • Hello, I'm having to make a Pac-Man clone for an assignment at my school. I have pretty much everything worked out the way I'd like except for the ghosts' movement. The only problem with their movement that I know of is that with the way I have it set up, sometimes when they collide with the maze they are supposed to choose a new direction and sometimes will choose the same direction they were already going and phase through the maze if that makes any sense. If anyone could help me out with this in any way I'd greatly appreciate it as I'm almost done with it.

    Edit: I just realized I can't post URLs so it'll take a moment but I'll try to write out what the problem is and see if I can make it understabdable

  • I gave the ghost the bullet behavior and told it that whenever it collides with the maze to pick 0, 90, 180, or 270 and set it as the bullet's angle of motion, but like I said above, sometimes it will mess up and they will phase through the maze. Of course if this doesn't make enough sense or I didn't explain it well enough just say so and I'll see if I can do better.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • not quite sure if this will help, But have you tried

    if angle = 0 (then pick 90,180,270)

    if angle = 90 (then pick 0,180,270)

    if angle = 180 (then pick 0, 90,270)

    if angle = 270 (then pick 0, 90,180)

    edit: also use marker blocks top,bottom,right,left if overlapping top on collision with right angle go down or left (pick 180,270) and so on. so not to get stuck in a corner just going top and right.

    As we can not see what you have done it is hard to point you in the right direction, without guessing at the issues you are having.

  • Hello, I'm having to make a Pac-Man clone for an assignment at my school. I have pretty much everything worked out the way I'd like except for the ghosts' movement. The only problem with their movement that I know of is that with the way I have it set up, sometimes when they collide with the maze they are supposed to choose a new direction and sometimes will choose the same direction they were already going and phase through the maze if that makes any sense. If anyone could help me out with this in any way I'd greatly appreciate it as I'm almost done with it.

    Edit: I just realized I can't post URLs so it'll take a moment but I'll try to write out what the problem is and see if I can make it understabdable

    Maybe the following tutorial could help you out:

    https://www.scirra.com/tutorials/308/cloning-the-classics-pacman

    Also, it's possible to bypass the url posting restriction by simply inserting characters into the url, or missing off the http:// part, e.g.

    http*://*www.mysite.com/mygame.capx
    [/code:2u5uaqjc]
  • Maybe the following tutorial could help you out:

    https://www.scirra.com/tutorials/308/cl ... ics-pacman

    Also, it's possible to bypass the url posting restriction by simply inserting characters into the url, or missing off the http:// part, e.g.

    > http*://*www.mysite.com/mygame.capx
    [/code:1vegfwl8]
    

    Thank you for this useful information.

    https*://*www.dropbox.com/s/ktf884jobl6jrtv/Pacman.capx?dl=0

    not quite sure if this will help, But have you tried

    if angle = 0 (then pick 90,180,270)

    if angle = 90 (then pick 0,180,270)

    if angle = 180 (then pick 0, 90,270)

    if angle = 270 (then pick 0, 90,180)

    edit: also use marker blocks top,bottom,right,left if overlapping top on collision with right angle go down or left (pick 180,270) and so on. so not to get stuck in a corner just going top and right.

    As we can not see what you have done it is hard to point you in the right direction, without guessing at the issues you are having.

    I haven't tried this, but I will try it and report back if it has fixed my issue or not. Thank you for trying to help.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)