Heya,
I'm trying to replicate NPCs behavior in old-school RPGs like FF, Pokémon, or more recently Stardew Valley.
Reference video:
https://youtu.be/ot7uXNQskhs?t=102s
As you can see, NPCs are living their lives while walking from point A to point B. In SV, their path is predetermined, while in some games they can wander around randomly for some time. Anyway, I want my NPCs to walk in a 4 directional movement and taking the shortest path while avoiding obstacles.
I already tried:
- Tile movement behavior with scripted events like "run toward this direction and change direction when there's something in the way". They can walk toward a direction, but if there's an obstacle they're stuck.
- Pathfinding. 4 directional movement is complicated, even with diagonals option unchecked, the angles are often smoothed out, and the movement looks very unnatural.
Well, thanks in advance!