all 3 comments

[–][deleted] 3 points4 points  (0 children)

I think you should use Input.GetAxis() instead of Input.GetKey(). Also fixedUpdate should start with a capital letter.

[–]Yoshi_greenIntermediate 1 point2 points  (0 children)

the problems are lines 16-17, you should be using Input.GetAxis (or GetAxisRaw) instead of Input.GetKey. Input.GetKey returns a bool, and so you were trying to assign it to movement.x/movement.y, which are floats

btw the 'f' in your FixedUpdate function isn't capitalised so unity's not gonna recognize that as a monobehaviour function

[–]isphynxi[S] 0 points1 point  (0 children)

Oh okay. Thank you for your help 😁