Klimber

Villager
Member
Joined
Apr 2, 2020
Messages
24
Reaction score
3
First Language
Ukrainian
Primarily Uses
RMMV
Hello! Please tell me the script command that changes the standard maker control from arrows to WASD.
I using Yanflay plugin KeyboardConfig, but he was not change default setting on start game.
It is important that the arrows also continue to work.
Thanks in advance.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,995
Reaction score
2,345
First Language
Dutch
Primarily Uses
RMMV
you can do it with the keyboardConfig though and place arrow movement
also on the AWSD buttons correctly.

if that dont work, there is also a keymapper plugin you can use for it.
as I'm no fan of AWSD, I mostly remove that, but it should work
with the plugin you have.
 

Klimber

Villager
Member
Joined
Apr 2, 2020
Messages
24
Reaction score
3
First Language
Ukrainian
Primarily Uses
RMMV

ShadowDragon


Thank you! But I don't think I understand you correctly... Is there any other variants?
 

Nolonar

Veteran
Veteran
Joined
Feb 18, 2018
Messages
424
Reaction score
579
First Language
French, German
Primarily Uses
RMMZ
You can also just write your own simple plugin:
JavaScript:
Input.keyMapper[87] = "up";    // W
Input.keyMapper[65] = "left";  // A
Input.keyMapper[83] = "down";  // S
Input.keyMapper[68] = "right"; // D
Save it to a .js file and load it like you load any other plugin.

I don't recommend doing this in a script command, unless it's temporary. Otherwise the WASD mapping will only be valid until the player exits the game. Once they load their save game again, the mapping will be gone. It will also lead to weird behavior, like WASD sometimes working on the title screen and sometimes not. You probably don't want that.
 

Arthran

Veteran
Veteran
Joined
Jun 25, 2021
Messages
511
Reaction score
490
First Language
English
Primarily Uses
RMMZ
You can also just write your own simple plugin:
JavaScript:
Input.keyMapper[87] = "up";    // W
Input.keyMapper[65] = "left";  // A
Input.keyMapper[83] = "down";  // S
Input.keyMapper[68] = "right"; // D
Save it to a .js file and load it like you load any other plugin.

I don't recommend doing this in a script command, unless it's temporary. Otherwise the WASD mapping will only be valid until the player exits the game. Once they load their save game again, the mapping will be gone. It will also lead to weird behavior, like WASD sometimes working on the title screen and sometimes not. You probably don't want that.
It's also probably worth noting that doing this will override the fact that W is already mapped as "pagedown". So maybe toss in an extra line to re-map "pagedown" to E or something:
JavaScript:
Input.keyMapper[69] = "pagedown"; // E
 

Klimber

Villager
Member
Joined
Apr 2, 2020
Messages
24
Reaction score
3
First Language
Ukrainian
Primarily Uses
RMMV
Thanks! I add this script in js. file, switch on he in maker and all working. Character moves with WASD:)
 

Latest Threads

Latest Posts

Latest Profile Posts

Whoever decided that the 5th area of Xenoblade 3 had to be THAT big and be explored in the manner it does needs to be shot. My OCD cannot leave a tiny shard of the map hidden and those controls can go right on and f*** themselves. -.-

/rant off
Raggon wrote on NoPatience's profile.
:kaohi:
Anyone know of any good guides for editing the UI in RMMV?

Forum statistics

Threads
124,433
Messages
1,163,599
Members
163,244
Latest member
Robertini224
Top