Answer the question
In order to leave comments, you need to log in
How can I make the character move in the given direction when pressing the arrows once until the player presses another arrow??
How to make it so that when pressing the arrows once, the character moves in a given direction until the player presses another arrow?
if (Input.GetKey(KeyCode.RightArrow) && valid(Vector2.right))
dest = (Vector2)transform.position + Vector2.right;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question