PacMan with pathfinding

0 favourites
  • 6 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • Hi guys,

    Im trying to make a pacman game with touch controls using the pathfinding behavior.

    Is there a way to make pacman move (like in the pacman game) without touching the walls, (not doing diagonals).

    I would like to restrict the movement to 4 directions.

    Is this possible?

  • A possible implementation is to use the 8 direction behavior and set its property "Directions" to "4 directions".

  • Thanks Kyatric

    I tried that but it is not working very well. The player gets stuck on solids a lot of the time.

    The movement would need to be some sort of tile/grid movement. But I dont really know if that can be implemented using the pathfinding

    If anyone has any ideas please shoot.

    Cheers

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Do you mean the actual pathfinder moves your pacman character ?

    If so, diagonal movement in open space is set by default, an option to make paths with or without such diagonals is missing in the behavior at the moment but might be added in some newer release.

  • Yes!

    PacMan touch waaaaaay <img src="smileys/smiley17.gif" border="0" align="middle" />

    yeah thought so. It will be nice to be able to control how many directions the pathfinder can have.

  • Oh man im waiting for that.. want to make the pathfinding use only four directions and based on a grid of the size I want

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