MeBoingus
Member
Hi all,
I'm busy working on a basic (9-verb / Monkey Island-style) point-and-click adventure game, and I'm struggling to set up the walking / path-finding system.
Each room in the game will be surrounded by a collision mask, of sorts. My goal is to be able to click somewhere on the collision mask, and have the character object path-find to the point closest to the mouse position.
Illustrated below:
Where green represents the player, pink represents the path, and the red X represents the position that was clicked.
The way MP Grids work at the moment would result in no path being returned.
Any ideas?
I'm busy working on a basic (9-verb / Monkey Island-style) point-and-click adventure game, and I'm struggling to set up the walking / path-finding system.
Each room in the game will be surrounded by a collision mask, of sorts. My goal is to be able to click somewhere on the collision mask, and have the character object path-find to the point closest to the mouse position.
Illustrated below:
Where green represents the player, pink represents the path, and the red X represents the position that was clicked.
The way MP Grids work at the moment would result in no path being returned.
Any ideas?