Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I use the same basic pathfinder the enemies use but in reverse, so if the player is more than 2 tiles away from the closest enemy, there is a 40% for each dice to use the pathfinder to the enemy and pick that direction.

(The pathfinder is just a direct normalized and snapped direction towards the target because I didn't have time to do a proper pathfinder.)