Mini Boss Actions

The mini boss acts slightly differently to the minions, acting more aggressively and equipped with two skills.

So, the first thing is creating the variables. These variables are the actions and stats.

We then state what the variables mean, which is that it will call from the specified scripts indicated.

So, the first action. It shoots. That is it. Well, it also checks whether the mini boss can attack or not.

As the mini boss has two skills, this function will randomly pick between the two skills, using a coin flip method. There is a 50 % chance for either skill to occur.

So, the movement. It is very similar to the minion AI, but is just slightly more aggressive. As can be seen, it will come towards the player a lot more often than the normal minions. I want these mini bosses to be challenging in their own rights. Obviously at lower health, they start retreating a bit more, but is still majority going towards the player.

Leave a comment

Design a site like this with WordPress.com
Get started