Tutorial 2
For our week 2 tutorial we had to export our new animated character and import in to unity. We go to learn how to get our blender animations working an how to transition between them using triggers.
This was a little difficult to work out at first, as I had forgot all of my unity knowledge, but once I slowly figured out where things where, it was quite easy to do they rest of the animations.
The first thing we do was to make a transition from the idle state to waving by pressing the space bar. I had do this by making a transition between the idle and waving animation, and then I had to connect a c# script that told the trigger for waving if I pressed the space bar, which sets off the wave animation.
P.s. I realise that due to my poor gif making skills it looks like a click the screen to get my character to wave, but in actual fact the click is to make sure I'm on the Unity window, before I quickly press my space bar.
Next we had to make a script that allows the character to walk and rotate when you press the 'W', 'A', 'D', 'S' buttons. (Unfortunately I didn't get a gif of my character moving around before I added the walking animation, oops)
And then the final part of the tutorial is to make the character walk around the screen, and when you walk have the walking animation trigger. That way it looks like the character is actually walking an not floating. (Please Ignore my inconsistent button pressing to get my character to walk)
I make my character walk by using a similar function to the wave. I made a walking trigger, and a walking script that told unity which animations it needed to play when certain buttons were pressed. I did find that the longer I had my character walk around for, there was a pause in the animation where the character didn't move, just floated as I was still pressing the move buttons. I did try and fix this, but it seems that it might have been an issue from the blender animation (So only short walks for now).
And that concludes the week 2 tutorial. This week wasn't as bad as last week, I found the content a lot easier to complete.
KIT207 Portfolio
More posts
- Self Study 53 days ago
- Self Study 4, Game Ideas11 days ago
- Self Study 4, A Simple Game11 days ago
- Tutorial 317 days ago
- Self Study 318 days ago
- Self Study 225 days ago
- Week 2 Tutorial31 days ago
- Week 1 Self Study31 days ago
Leave a comment
Log in with itch.io to leave a comment.