Hi.
I would like to have a zelda-like movement behavior, with two players on the same keyboard, each player controlling his own character.
What is the best way to do this?
Okay, so I just made a quick example using two top-down characters using the default 8-direction control. One of them is set to the default arrow controls, and the other one has default turned off and is using the keyboard + simulate.
Develop games in your browser. Powerful, performant & highly capable.
Keep in mind that some keyboard can only detect a certain number of inputs at max. So you might want to have other controls if possible
aphrodite is correct as usual.
there are limitations on how many simultaneous keystrokes a keyboard can detect.
i do not think this will work the way you want it.
Thanks for the example !
Yes you are right about the keyboard limitations. I think I'll look toward another controller, like a gamepad.