#problem with player movement
1 messages · Page 1 of 1 (latest)
The error message literally mentions what's wrong with that code
im new to unity
It says ") expected", means that you're missing a ")", which should be added at the end of the code
Try counting the number of the "(" and ")" in that code, they don't have equal amount of them
ok ty
You're welcome
i dont understand can you please help me?
Try reading these again
Try reading this again
Your code contains 3 "(" and 2 ")", which makes the code gives out an error
so what i need to do?
i need to delete them?
This
where im missing a ")"
There's a "(" after Vector3, then there are brackets surrounding "Horizontal" and "Vertical", but there's no ")" to pair it up with the first "("
Put it before the ";"
You put ")" before the ";"
.
.
No, put an additional closing bracket right before the semicolon
No, the first pair of brackets need to cover the entire stuffs for Vector3
Vector3 my_input = new Vector3 input.GetAxis" Horizontal", 0, input.GetAxis "Vertical");
like this?
Don't remove the brackets for Horizontal and Vertical
It should look like this:
Vector3 my_input = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
^
change the input.GetAxis to Input.GetAxis with capital I
all places where it says input should be changed to Input
Change Getkey to GetKey