Hello!
I am making a little game of sorts, and I'd like to include two control options for the character movement.
The player should be able to either:
-type "east", "west", "north" or "south" to move in the appropriate direction (I have written the movement function)
-use the numbers on a keypad instead, thus replacing the directions with 2, 4, 6 and 8.
Is there any way to make the numbers equal to the strings so that both input methods can be used?
Also, for bonus points, (though this is pretty much an easier version of the question) is there a way to be able to also substitute "e", "w", "n" and "s" for the directions, while also keeping the full words and the number options?
Thanks in advance for any help!