In my game I have two links, one makes the player go left and other right.
I am very aware that after player travels 200 tiles it will get very annoying to use the mouse so what I need is a way to make the Quest recognize when I press the right arrow key and automatically click the link for me.
I could use this for other things, maybe I could access inventory with "I" and options with "ESC"..
As far as I understand your answer, you are leading me to do it trough the command bar.
And that is what I want to avoid, I know that somewhere in the playercore.js of the Quest files there are event listeners that know to respond to a mouse click and that is what makes the links interactable.
I am sure it is possible to just set it to "listen" to keyboard instead.
Seems clever how you've made it do that!
There's some good coders here who may be able to help.
If done in the Text Adventure editor (which it isn't) my advice would be that clicking left would start a timer that would repeat the command. Although timers are min one second which is perhaps too slow.
The text adventure editor does come with a built in compass.
It is not trivial, but there is some guidance here:
I think, what Sebastian2203 wants is something more like a graphic adventure...
IE: screen map with the player icon in the middle...
player (user) hits the left arrow key and the player moves left 1 space.
player hits the up arrow key and the player moves up one space.
player hits the "A" key (for attack) and attacks the Orc in front of him...
1 key input... not "N" (for north) then enter... (2 key input)
Got a download link... the on line version is slower than an Apple Mac running a Vic-20 emulator, emulating a Commodore Plus 4...
When I push a button, I expect action, not delay...
(No despite how it sounds, I am not complaining, altho it sounds that way...)
Glad you got it working, I may want to do something like this my self...
and I may have an idea on how to speed this up if it is the program that's causing the delay and not my satellite internet connection.