Warfront Infinite Dev Blog #21: The First Enemy (Animations)

Published October 08, 2018
Advertisement

This week me and my artist were working hard on the new alien model and its animations. My job was to implement the animated models into the game engine, manage transitions between different states and rewrite the enemy controller script. Since I haven't worked on skeletal animations in unity yet, it was a good learning experience and I found out that unity has this Animator component which handles transitions between animations and it is really easy to use. All I had to do was use Animator editor to create few different states (for walking, dying, getting hurt and attacking) and draw some lines between states to mark transitions.

animator.png

Then you can click on each of the connecting lines to edit the transition between those states and it will bring up this window:

state_editor-e1539017900695.png

Here you can edit how fast the transitions occurs, when does it occur and more.

To control the animations using the C# script all you have to do is to use GetComponent<Animator>() and then call its .Play(<animationName>) method. It will automatically do all the transitions which you created in the Animator tab.

This is how the animations look in game:

ezgif.com-video-to-gif-6.gif

ezgif.com-video-to-gif-7.gif

alien_shooting.png

As you can see I added some glowing which I thought would look cool.

There's still 5 more alien enemies left to do and after that we'll be working on the environment, adding buildings, new textures and overall changing the look of the levels.

 

 

 

 

3 likes 0 comments

Comments

lawnjelly

The aliens look very good and the smoke trails on the launcher thingies! :)

October 08, 2018 05:38 PM
EddieK
Just now, lawnjelly said:

The aliens look very good and the smoke trails on the launcher thingies! :)

Thanks!

October 08, 2018 05:39 PM
Rutin

Wow!! Now this is really looking even better than before. :)  Those animations are great! Great work to you and your team!

October 09, 2018 03:29 AM
EddieK

I'm glad you like it! There will be more visual changes in the coming months such as new aliens and environment. I'm REALLY glad I found someone who does this amazing art, since without him this project would still look like "programmers art" :D

October 09, 2018 05:38 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement