The Knight


Design

The first obvious thing to me was to design the protagonist, the Knight.

I already had some design choice in mind. I'm a huge fan of Hollow Knight and I liked their characters design and proportions.



A huge head, small stumpy legs and some kind of cloth to cover the body.


I wanted a more traditional knight look with similiar proportions to the Hollow Knight. As a little twist, which I really like, he wields a pencil sword. Fits the style and looks cool.

Now to bring him alive, le animation.

Animation

Idle

Walk


Jump

I was really happy on how all these came out and they sure were fun to make.

Implementation

I keep learning new tricks for Unity everytime I make something in it. One of those things, is how powerful the Animator is. Not only animations but root motion and frame perfect function calls makes it really easy to implement a character.

My animator layout looks somewhat like this. (With some extra states for attacking)


The Any State is usefull for the falling and jump animation. Besides that I think everything is pretty straight forward.

The code should be nothing crazy because the animator does most things for me.

Simple Movement


Flipping the X scale for facing


I chose to flip the scale instead of the sprite so the offsetted hitbox and so on moves along.

And of course check for grounded


That is the basics of my implementaion, nothing fancy but still worthy of documentation.

Next time I will show some enemies that I am working on and some knight attack animations.

Leave a comment

Log in with itch.io to leave a comment.