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".
Develop games in your browser. Powerful, performant & highly capable.
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.
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.
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