Game
The Cardinal Crusade
7 years ago

New Enemy: The Core Guards


Hi and welcome to this weeks devlog!

This week I’ve been programming an enemy that we posted about a few weeks ago, the Core Guards!

These enemies are designed to be a bit more capable than other enemies in the game so far. Equipped with both a shield and a large sword, they are much more challenging to bypass and kill.

Player prediction

I started with getting them to predict an incoming attack from the player.

5d0a108f46fba.gif

This works by testing things like if the player is facing them and/or moving towards them. If the player is moving towards an enemy, there is a high chance for an attack so it makes sense to shield and walk backwards away from the danger.

Attacking the player

Next up was being able to attack the player with their sword!

5d0a1092813ce.gif

As you can see in the GIF above, the player is able to block an incoming attack with the shield.
The sword’s collision shape was set up per frame to provide a precise and fair collision against the player. No one likes taking damage when it looks like they didn’t get hit.
Below you can see the red sword overlay that I used to position the lines precisely with each attack frame.

5d0a1095e23d4.gif

After some testing we realized it was still too easy to simply double jump up and over the core guards. We want this enemy to be a challenge so we extended the length of the sword to make it harder to jump over an attack.
Of course this put the collision lines I had set up out of sync as you can see bellow so I had to do them all again from scratch.

5d0a1098a9832.png

Reacting to damage

The final step was making them react to damage from the player.

5d0a1099b7181.gif

The player has two methods of attack; front on, or from above using a downwards stab. The core guards react differently to both types.

  • For a front on attack they react with their shield in order to prevent any more damage.

  • For a downwards stab they react by swinging their sword over their head to prevent the player from being able to do further damage from above.

That was it for all the basic functionalities. They can deal damage, block incoming damage and react appropriately to any damage they happen to take. There is still polish left to do on things like damage effects but we didn’t get to that this week.

We hope you enjoyed this devlog. Thanks for reading!



0 comments

Loading...

Next up

Woah!

Thanks all!

Don't forget to Wishlist Eldritchvania!

https://store.steampowered.com/app/2423710/Eldritchvania/

Development Streams!

Devlog sunday 8

Thanks for 2017!

The Cardinal Crusade Demo Release! Friday 31 March

Bug Fixes!

Since the last Eldritchvania update we've been reading feedback and watching game play videos; which lead us to witnessing and fixing more bugs.

Check the article for the list of fixes

A transformation Hello, in this devlog we’re showcasing an animation where the player character transforms into a smaller, flesh monster. Why is this in the game? What purpose does it serve? Perhaps more will be revealed soon…

We took @Benallen 's suggestion and improved the map view even more by changing the colour of rooms you've entered, further clarifying where you've been so far; and thus where you might want to go next.

#Eldritchvania

A look at a new enemy: The Core Guards Today we would like to show off one of the new enemies that you will encounter in world 3. These large, brutish soldiers are well armoured and will surely put up a fight! … Even if they have apples for heads.

The Last Five Months in The Cardinal Crusade