← Return to game
Log in with itch.io to leave a comment.
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
Love the game!!!
Thank you! Glad you like it :)
← Return to game
Comments
Log in with itch.io to leave a comment.
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
Love the game!!!
Thank you! Glad you like it :)