Content-Length: 17950 | pFad | https://itch.io/post/9750864

Post by Arturo Benelli in Don't Get Caught! comments - itch.io
Skip to main content

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

very interesting game. how did you make the red hunter AI?

Thank you! I think it was as simple as this line of code, or something like this (it's been a while since I've touched Unity..):

transform.position = Vector2.MoveTowards(transform.position, player.position, speed * Time.deltaTime);

I will have to experiment with that, I felt like it had some interesting moving patterns in avoiding walls, and exceptional lateral movement in the same cases where it could've stuck









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://itch.io/post/9750864

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy