You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To help working on this I've elaborated a bit on the wiki how the current movement system works (see here). Anyone feel free to point out what's unclear or missing.
One big take-away is that in the current system, when a player moves, it sends the intended path to the server which broadcasts it to the other client. All clients "play" the paths they receive without depending on regular updates from the server.
In a key-controlled movement system, this won't work anymore, instead it'll be necessary for the clients to send to the server (every few hundred milliseconds) which directional keys are pressed, and the server will have to relay that to the other clients at a similar interval. This info will have to be sent through the update packets, which is something I'll write a wiki entry very soon to help with this.
I would like to request WASD/Arrow and mobile touch controls.
In my opinion the current movement system with clicking is especially hard for mobile users and even on pc its just feeling slow.
I would suggest to change it to Arrows/WASD + Space (to activate stuff) and add mobile touch controls like in this example (https://phaser.io/examples/v2/input/virtual-gamecontroller)
The text was updated successfully, but these errors were encountered: