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,698
Reaction score
2,248
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
419
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
310
Reaction score
259
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

Thunderstorm approaching: *rumble rumble*

Me: "Hmph... so.. you've come..."

And ONLY me: (adapts fighting stance) "...now show me your TRUE POWER!!!"

*Thunderstorm fizzles out. Sunshine and rainbows.*

Seriously, ONLY ME: "No! Come back! I.. I didn't mean..."
The black rose maiden! :kaopride:
vmTLAk8.jpg

Character: Aki Izayoi from Yugioh 5Ds.
Took some trial and error, but I managed to create "visuals" for underground dig path regions.
Couldn't sleep at all so I started working on the topmost deck. I've had to make several deviations from the Imperator/Berengaria's deck-plans to accommodate MV's movement, but 100% accuracy was never my intention.
Still no name for the poor ship...:kaodes:
Screenshot-2022-06-25-053308.png

Forum statistics

Threads
123,034
Messages
1,153,593
Members
161,381
Latest member
hvrhrt
Top