I want to have a area in my game where users can type commands. ie a box at the bottom. but don’t know how to make it so that every time a key is presses it it entered into the box.
I am using the html5 development and have tried going
if any key pressed add last pressed key to Text Box.
this issue with the above is that it displays 3 or more of the same letter with a signal keystroke.
if anyone knows how to solve this problem let me know. or if you know how to add a delay between keystroke that would be nice too.