Game
Grimstorm: Colosseum
8 years ago

Updates to AI


Previously, the AI would be using a very hacky finite-state machine to determine what action to do in response to the current target. This was fine to begin with, but in the long run it’s very ineffective.

5d0ba3c3d9501.gif

View a video of the AI in action

I have changed the AI to use a mix of finite-state machines (FSM) and goal oriented action planning (GOAP). GOAP gives the entity certain actions and goals it can perform with costs, and the AI will see if it can perform it.

Each AI has a hidden “action point” counter that regenerates over time, and it can spend them on various actions, such as a standard attack, a roll, or a strong attack. The better the action, the higher the amount of points required. A harder AI to fight will get action points quicker than more common ones.

5d0ba3c5cb05f.gif

However, the AI isn’t perfect just yet, and still needs lots of refinement! I am wanting to add in an ability that lets me specify how much the AI favours a certain move over the other. So you might have a very evasive ninja who likes to roll, or a tough knight who always blocks your attacks. It will allow me to give lots of variety to your opponents and make them a fun fight overall.

Let me know your thoughts on the progress so far!



6 comments

Loading...

Next up

Just released almost 50 minutes of video game music over on Bandcamp!

What's your favourite? Do you recognise any? What type of game can you imagine each song to? Let me know in the comments below!

https://niksudan.bandcamp.com/album/video-game-music-volume-3

Initial Armour Designs

My ambient/electronic remix of Memoraphile’s track is out now! If you like chilled out stuff with soothing synths and pianos, you will enjoy this one.

https://linktr.ee/niksudan

Eldritchvania is available now for free! Can you survive the horrors that lurk amidst the forgotten depths?

13 years on this site… feeling lucky (especially with this trophy)

I just released a soundtrack to a short film!

A blend of immersive ambient, synthwave and orchestral. Listen now on all music platforms.

https://linktr.ee/niksudan

Mechanics Explained (Video)

I’ve got a new song coming out next week! #chillwave #ambient #electronic #newmusic

New Animations