2D Toolkit Forum

2D Toolkit => Support => Topic started by: JBabz on July 29, 2013, 01:09:17 am

Title: [FIXED] [2.1] Ice-Skating Movement Problem?
Post by: JBabz on July 29, 2013, 01:09:17 am
This is a revival of an old, not-compeletely-answered question.
With joystick, my character (top-down, character controller) moves flawlessly, and exactly how I want him to.
With keyboard, my character moves like an ice-skater, gliding around and stuff.
Help?

Character code:
Code: [Select]
using UnityEngine;
using System.Collections;

public class DungeonPlayerBehaviorScript : MonoBehaviour {
private const float VELOCITY = .075f;

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
CharacterController controller = GetComponent<CharacterController>();
controller.Move(new Vector3(Input.GetAxis ("Horizontal") * VELOCITY, 0, Input.GetAxis ("Vertical") * VELOCITY));
}
}
Title: Re: [2.1 BETA] Ice-Skating Movement Problem?
Post by: unikronsoftware on July 29, 2013, 11:41:20 am
You probably need to tweak the values in the unity input manager.
Edit > Project Settings > Input.
Title: Re: [2.1 BETA] Ice-Skating Movement Problem?
Post by: JBabz on July 30, 2013, 05:36:33 pm
That worked great! Thank you.