Monday, 14 April 2014

Character Animation Completed: Emma

For the past couple of weeks, among making some textures and fixing up other coding for the unity packages, ready to be placed into the compact file, I have been fixing up the character file and I have finally managed to get it completed and working as well as it should be.

Some of the problems included him falling through platforms, being thrown off moving platforms, not jumping smoothly and not moving up ladders nor crawling, all of these essential to our game.

Address the first problem, which has been one of 2 problems before the character animations begun, the character was not reacting well to the moving platforms in place, the moving platforms were being moved with script, and the character fell through the collisions and eventually became stuck in the platform. 

I fixed this problem, by making an animation within unity for the individual platforms that needed to be moved. the character then "Bounced on the platform, for which I resolved by adding a large trigger area upwards to the player had little to no choice but to remain parented to the platform as it moved up and down. 


Other problem I had before I got into the Animation stage was the character unable to move up a ladder. The player would remain at the bottom of the collision. This was fixed with the help of Kevin, who added an extra piece of code : "&& onTheLadder" and adjusted the gravity on the project so the character was a bit more successful in getting up the ladder. This adjust needs to be made to the main unity file as well and has been noted.


The final problem I faced while finishing this character off is the jump animation, the character when and if he activated the jump animation, would stop in mid air, when the plan was, and needed to be, that he continued to move through the air so he is able to move from one platform to the next. 

The problem was resolved with a lot of tweaks to the characters jump animation, a replacement has been made for a quick animation, and I then tweaked with his settings in the player2dcontroller script, as well as his settings. Which in the animator setting, the Root motion has been turned off so the character is able to move and jump more freely, without being restricted to the x,z and y position his animation uses. he now walks a bit more fluidly and jumps better as a result. 



The final tweaks are just small adjustments to the Mecanim transitions, which make the character move a bit more fluidly, the final step with him is to make the scarf, which I will quickly build in Maya and attach to him, then add a cloth script to the scarf so it acts as it should.

The below videos shows where the character is now, and can now be classed as finished.

Character Crawling Animation and switching in Mecanim.



all character Animations:

No comments:

Post a Comment