Klimber

Villager
Member
Joined
Apr 2, 2020
Messages
21
Reaction score
2
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,725
Reaction score
2,262
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
21
Reaction score
2
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
421
Reaction score
576
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
330
Reaction score
273
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
21
Reaction score
2
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 Profile Posts

RushLog wrote on HarlekinLehl's profile.
how do you attach those images to your posts?
I picked up FF III pixel remaster for the mobile discount sale. I guess that's on my plate after I finish Lunar Silver Star Story. That said, I am strongly considering an entry for the IGMC 2022 since an idea came to me for this year's theme.
Map033.png Road to the ruins of the temple of light you'll be exploring after leaving Teytal. Can I get some Yays?
I just bought VN Maker with 75% off, just for the assets.
IGMC is back everyone!

Forum statistics

Threads
123,207
Messages
1,154,915
Members
161,589
Latest member
Crizzaro
Top