How To Make a Fake Multiplayer Game: Natural AI

preview_player
Показать описание
I will teach you how to make a natural AI for fake multiplayer games where the player plays against AI that have names and with a leaderboard, making it feel like a multiplayer game. This type of game has become quite popular, especially .io sites and apps, so when a subscriber recommended me to make a tutorial on it, I thought it would be interesting.

The most important when making an AI for fake multiplayer games is to make it natural. That means the AI must not be able to do things that the player cannot do, such as see through walls, see too far away, move too fast, etc. It also must act like a human. That means it must make mistakes, do things not in the perfect way, etc. I will show you an example in this game by making the AI have randomized weights for the decisions of what action to take making them inperfect and different from each other as well as adding a turn speed so they can't react too fast.

---------------------------------

Subscribe for game making tutorials, other game-making related content and to follow my projects with the dev logs !

0:00 Intro
0:35 Keeping Track of Entities
2:03 Entity Type
3:10 Reactive AI
11:48 Remove Enemies
14:00 Visualization
15:00 Priorities
17:13 Different Behaviors
19:00 Smooth Turns
21:38 Target Player Too
Рекомендации по теме
Комментарии
Автор

Very nice, how do you prioritize the enemy viruses to eat the bacteria, this would help give it a super human like feel, as a player will always try eat bacteria to grow. like if an enemy or player virus is not in seeRange then make the enemy viruses eat the bacteria. Like a weighted chance to make them eat the closest bacteria some enemy viruses eat bacteria others that don't prioritize eating bacteria just going for smaller viruses and red cells. Also having more bacteria and red cells spawn until the game time is over. Loved these tutorials. Thanks

aussiedev