The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Let's go over what your code is doing, and perhaps we can point some things out. You use the variable Movement to capture the input for each axis at each update frame: void Update() { Movement.x = Input.GetAxisRaw("Horizontal"); Movement.y = Input.GetAxisRaw("Vertical"); } Capturing this in a Vector2 makes sense since you're moving in 2d, and ...

Only top voted, non community-wiki answers of a minimum length are eligible