Posted December 19, 2021 by Simerca
#gamedev #dev #indie #game #mmorpg #online #online game
Good morning !
Today is a big day for Fantasy Arena.
In any respectable game, we hear about artificial intelligence. However, how is it defined, what are the bases to be put in place to achieve something good, or at least good. I will answer them in this article
Here we go !
The robot you are going to set up must be subject to the same rules as the players, this helps to avoid the feeling of cheating.
He must also be able to use the same tools as the character (example: moving, shooting, jumping, etc.)
It is also important that the robot cannot be too higher, or too lower, depending on how your game behaves, the difficulty should be able to be adjusted or fixed.
In my case, I opted for a random jet system. The concept is very simple, we launch it every second and depending on the result and the situation we perform an action.
Here is the diagram
When the roll arrives in a field of action then it considers its context and performs the appropriate action.
Otherwise if the throw is outside the action field, the last movement is persisted (example: follow the player)
It's pretty good 😊
And it's available on the new version.
Android: https://play.google.com/store/apps/details?id=com.Simerca.FantasyArena