Tips for AI development in video games

Started by
2 comments, last by benjamin.lohr770 1 month, 1 week ago

Good afternoon everyone,

I am making this post to hopefully learn more about AI development and be able to go from just basic behaviour trees to maybe something more advance. I have worked with unreal for about 3 years now but have only created AI that could roam, chase, follow, and idle. This being all done with behaviour trees inside unreal. I am wondering as someone who wants to learn deeper into these topics how to go from here. I did a little AI development in C++ but just a basic patrol and attack when in line of player but not much further. If you are able to provide any help that would be amazing and I can't wait to hear from yall. Thank you for your time!

V/r

Ben

Advertisement

Hi there,

You're in for alot of fun 🙂

I had to implement monsters into my own game recently and this link helped me alot to understand the core concept: https://www.gamedev.net/articles/programming/artificial-intelligence/the-totalbeginners-guide-to-game-ai-r4

942/​

You can see how I implemented the monster brain on github (it's in js but the logic should be the same), check the demo if you want to see it in action.

https://github.com/orion3dgames/t5c/tree/main/src/server/rooms/brain

It's a simple state machine AI but it's easy to understand and implement and does a good job at faking basic ai: like a monster patrolling & idling, then chasing the payers if it's too close and attacking it when in range. Downside is that it does create code duplication.

Next time, I will try to improve and use a GOAP style AI instead (something like this: https://pankajbasnal17.medium.com/npc-ai-with-goap-1-understanding-and-approach-908312ba7067).

Good luck!

@undefined Thank you for sharing this with me. This new style of AI will surely help me grow and learn more about AI. I am developing a game for my college class and wanted to expand my horizon in the AI field for it so thank you!

V/r

Ben

This topic is closed to new replies.

Advertisement