character controller problem

My problem is that my character is not going in the direction hes facing; I attached some images, the arrows on the one to the left is what he is doing, the one on the right is what I need.
I also posted my code, the part with the problem, below

private var x = 0.0;
private var y = 0.0;
private var z = 0.0;
private var controller = GetComponent(CharacterController);
x = Input.GetAxis("Horizontal") * 15 * Time.deltaTime;
y = Input.GetAxis("Vertical") * 15 * Time.deltaTime;
if(!controller.isGrounded)
{
	z = -20;
}
else
{
	z = 0;
}
controller.Move(Vector3(-x*1,z*Time.deltaTime,-y*1));

715299--25872--$dont_want.png
715299--25873--$want.png

you need to use something like …
of course this wont work without a little homework on your behalf. Also you could check out the use of Translate();

var moveDirection : Vector3 = transform.TransformDirection(0, 0, Input.GetAxis("Vertical"));

controller.Move(moveDirection * Time.deltaTime);

thanks alot!