Quantcast
Channel: Answers by "Aaron_T"
Viewing all articles
Browse latest Browse all 16

Answer by Aaron_T

$
0
0
Looking at your code, it seems like it should work. A few things that you can check: Make sure that you attached your PlayerMovement script to the gamobject in the editor. Make sure that Speed is set to something higher than 0 in the inspector of that gameobject. You can go into Edit>Project Settings>Input and verify that Horizontal and Vertical are using correct keys. If none of these work, you can try to determine if the update function is working but putting Debug.Log("some message"); in there or in the if statement and check console output to determine if they're running.

Viewing all articles
Browse latest Browse all 16

Trending Articles