Thursday, December 13, 2012

Implementing Melee Weapon Systems Using Unity

Hey guys,

I had a gap in duties for the game and so I decided to further my knowledge of melee weapon systems using Unity (we will need to know about it eventually anyways).  I have learned everything in this post using Digital Tutors' "Melee Weapon Systems in Unity" (I got to give credit where credit is due right? haha).  Here is what I have been able to do so far.

I used the tutorial's files for the pre-made level and arm rig and imported them in.  I also imported my friend Dan's rigged goblin to use for the enemy instead of the tutorial's barrel.


I also imported all of the swords I had made in 3ds Max.


After attaching the arm rig to a first person controller, and adjusting the camera a little bit, I was able to successfully attach on of my game weapons to the rigs weapon node.



I then was able to make a health script along with a rectangular GUI health bar.



Next was working on the player's attack script.  There was a lot more to scripting than I initially thought (I have no prior programming/scripting experience other than through this tutorial).  You have to tell the computer the player attack distance, damage done, direction of attack, and cool down (so player can't attack an infinite amount of times within a small period of time).



So this is the extent of what I have done so far.  I will try to finish the group of tutorials soon and hopefully will have a better understanding of what it takes to program a simple melee weapon system setup.

Here is a video of what I have so far, enjoy!

Saturday, December 8, 2012

Making a Weapon Node

Hey guys,

I was assigned next to learn how to make a weapon node for our character's hand.  I looked for a rigged model for awhile, and finally found a free one that would work (mind you this will not be the model we will be using in the game).

I was able to figure out how to link the sword to the hand's mesh and turn it into a bone.


I then imported it into Unity and tried to see if I could attach a imported sword onto the character's hand (I used the same sword).  I also attach the rig to the first person character controller.


I tried it out in the game and the sword stayed!  Yay!


It is not over yet however, as I need to get the real character and do the same thing to it once it is modeled.  But, so far so good.

Here is a video, enjoy!


Unity Level Building

Hey everyone, the next job I was assigned to was taking our current game assets and create a prototype level design layout for our game.  This is what I finished.

First I started sculpting the the landscape.


I also added a first person character controller.


I then imported Cari's fountain and Tim's well into Unity; positioning them in the level.


I was told to make the fountain bigger and I also imported Chris's Castle in.

 
  

We didn't want the monsters to be able to team up on the player all at the same time so I made formations of boulders that a player could hide behind.


We also didn't want the player to accidentally fall off the level and so I built invisible walls, with colliders attached, to wall in the player.  It was also decided that we should make the rocks smaller.


The mountains were a bit too jagged for our cartoony-cell-shaded world, so I smoothed them out. 


Well here is the basic level design format I built.  Emil will be working on texturing it.


Here is a video, enjoy!