0

how do u guys make an AI in a game

i just wanna know

28th Dec 2017, 8:24 AM
Daniel James Dolor
Daniel James Dolor - avatar
3 Answers
+ 12
for a game ai, it's usually simplistic logic. like move towards player. or if in range of player, hide and shoot. ai like machine learning is usually too hard to be fun, or too resource intensive. you want your game ai to be dumb on purpose, or flawed, to give your player an edge to make it easy to figure out how to defeat it. game ai is usually decision trees, if x do y. if you do machine learning then it can be a bit unpredictable to put in your level design.
28th Dec 2017, 9:16 AM
Ahri Fox
Ahri Fox - avatar
+ 3
the term AI used in games is usually not real AI. it is just automatic control from computer which is already programmed.
28th Dec 2017, 8:52 AM
shobhit
shobhit - avatar
+ 3
In games, AI are just set of decisions for the those characters which are not controlled by us what to do in which situation. For eg: You have a party of 4 members, you control one of them at a time. A bunch of bad guys (or demons or whatever) apperas, now you are controlling one but the others have to fight too so the set of commands that are required to perform when hostile characters activates and the rest of your party starts to fight too. A very common example is chess, where the AI has a strategy of its own.
28th Dec 2017, 9:39 AM
Harsh
Harsh - avatar