Strange Control problem

Hello to the Forums.
I have been a lurker, and now I am attempting to design and build my first game. I am Highly influenced by MikaMobile with the ZombieVille USA games. Love the art style and game play.

Anyways, the build has been straight forward so far, except for one problem. My controls seem to be “off” for lack of a better term. I’m going for that 2.5D platformer feel with WASD as my controls. Using any of the keys moves, but not correctly. I have working on this problem for a day and half, and I can’t figure it out. I am new to programming and have attached my script. A good point in the right direction would be awesome.

In my project, and the values of the variable are different.

var speed : float = 10;
var jumpSpeed : float = 8.0;
var gravity :float = 20.0;

private var moveDirection :Vector3 = Vector3.zero;

function Start()
{
animation.wrapMode = WrapMode.Loop;
animation.Stop();
}
function Update()
{
var controller : CharacterController = GetComponent(CharacterController);
if(controller.isGrounded)
{
moveDirection = Vector3(Input.GetAxis(“Horizontal”),0,
Input.GetAxis(“Vertical”));
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= speed;
if(Input.GetButton(“Jump”))
{
moveDirection.y = jumpSpeed;
}
if (Input.GetAxis(“Horizontal”) > 0.2)
animation.Play(“RunRight”);
else if (Input.GetAxis(“Horizontal”) < -0.2)
animation.Play(“RunRight”);
else if (Input.GetAxis(“Horizontal”) < 0.2)
animation.Play (“idle”);
}
moveDirection.y -= gravity * Time.deltaTime;
controller.Move(moveDirection * Time.deltaTime);
}

823054–30521–$DEV BUILDS.zip (7.13 MB)

Figured out my problem. I took off the box collider I attached to the limbs. Works like it should now.