Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Your game is insanely creative, how does the AI decide what path to take?

it calculates step cost of each tile, and choose the one with cheapest cost. normal tiles is 1, and the road that gives a double speed up cost 0.5. boxes cost 7, which is approximately  the tiles it could go around if it didnt step on the box. i eyeballed my numbers, but its mainly made so that police will not default go around the box and sometimes get stuck. and i also set priorities for police, you can see in the game, some times they tend to block the exit instead of trying to catch the criminal, and some tend to set their destination on where the criminal will be a few steps later. and in some levels, i intentionally made them dumb. i didnt put too much time designing the levels tho