Jump to content
  • Advertisement

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

Sign in to follow this  
EddieK

753 views

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.

 

 

 

 


Sign in to follow this  


0 Comments


Recommended Comments

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

Share this comment


Link to comment
Just now, lawnjelly said:

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

Thanks!

Share this comment


Link to comment

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

Share this comment


Link to comment

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

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!