May Game Dev 009: Getting hit animations working!

I managed to solve a few more problems and figured out how to test which side the character was getting hit. The answer was so simple, yet my online search lead me to all kinds of complicated ways of doing it.

My way was simply using the “bounds” of the box colliders and comparing their centers. Easy enough. I’m only testing for right and left right now, but it’s easy enough to extend it out into 4 or 8 directions if I want to really get jazzy. Right now I’m happy with what I have.

I’ll have to extend out the animation to the rest of the parts of the body. Right now I simply have the torso hit working. Easy enough to extend out the player controller.

Here’s what it looks like so far. Its starting to shape up.

Up next is building out the getting hit animations. After that, I’ll build a few combo moves and build a KO animation.

Then, I’ll build a simple 3 round game system with a win and lose case to make a real game.

After that I have to create a simple character select.

And finally, I’ll rework the art to make it pretty.

I’m a little past the halfway mark for the month. I’ve learned lots so far, and can’t wait to dig into Unity deeper.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s