Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

HELP!!! 2D TOP DOWN MOVEMENT PROBLEMS

This is the code that I got from a yt video on making a zelda like game. Compared to the code in the video a lot of words in mine are not colored and didn't have an autofill option i.e. Rigidbody2d and Vector 2.

These are all the errors in the console.

Looking forward to your replies! Thanks!!!

Best Answer

  • MouledouxMouledoux Member
    Accepted Answer

    change is a vector 2, but you're trying to set it like a float.

    try this:

    change.x = Input.GetAxis("Horizontal");
    change.y = Input.GetAxis("Vertical");
    


Sign In or Register to comment.