Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | EliLFrench2005 |
So I wrote
if Input.is_action_pressed(“move_forward”):
direction -= head_basis.z
elif Input.is_action_pressed(“move_backward”):
direction += head_basis.z
if Input.is_action-pressed(“move_left”):
direction -= headbasis.x
elif Input.is_action_pressed(“move_right”):
direction += head_basis.x
All movements are defined in the input map,
And I have no error warnings at the bottom.
The player will only move right.
What did i do wrong?