Computer VS Human?
Fajlajp
Member Posts: 666
How do you make a computer controlled player. For example in a fight game or a goalkeeper that tries to save a ball coming at him.
Comments
I can't offer any specifics I'm afraid but maybe some others can.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I'm searching specific for an AI for a fighting game.
Does anybody know how to make an AI for a fighting that control the "monster" to attack, defense and move?
Say a monster can Move Left, Move Right, Throw a Fireball at Player, Block.
Of course you can cycle through these actions but that'd make it a mindless and confused monster. So use a Rule that every so often checks either for the position of the player, the monster, or both + whatever else might be happening (is the player so many pixels/percent of the screen away from the monster, etc). Then randomize the Monster's action, or do another more specific checking.
E.g. Check for Player's location > Player is to the Left of Monster > Randomize between Moving to Player's Location at X Speed or Cast Fireball at Player, etc.
Keep in mind that the more Rules you have going on, especially if they are nested, could slow down either the game itself, or the decision-making of your Actor - so optimize whenever you can.
That's a pretty basic explanation of the traditional simple AI concept used widely in games, and I'm sure there are other people here who can help you better, especially with the specifics. Hope it piqued your interest enough to explore what you can do with GS, though! Nothing beats genuine interest + self discovery + a little bit of YouTube Good luck!
Could you send me a pm with how you controlled the boss, please @uptimistik
Nice AI!
Chakku