RPG Maker MV

RPG Maker MV

Not enough ratings
How to change the movement keys to WASD
By 🌸 幻 | Valinypse
Here's how to change any key in your games, this way you can make your character move with WASD instead of the arrow keys. You can also make both key configs available at the same time. No plugins needed!
   
Award
Favorite
Favorited
Unfavorite
#1・Locate files.
Go to your game's files and find a folder called 'js'.



Now locate a file called 'rpg_core.js' and open it with a text editor.


#2・Edit 'rpg_core.js'.
Press Ctrl + F and search '38', it'll take you to the key mapper lines.



Every key on your keyboard is assigned to a value, if you want to know them all just search for 'Javascript Character Codes' or 'Javascript Key Codes'.

Here's all of them, if you're curious:



If you want your basic movement keys to be WASD, change them to these:
  • W is 87
  • A is 65
  • S is 83
  • D is 68
Just like in this picture:


#3・Fix the W key.
If you want to make your character move with the WASD keys, you'll notice that the W value is already being used for 'pagedown' by default.

You can change 'pagedown' to another value or just simply remove it.



In my case I just removed it.



#4・Keep the default keys if you want.
You can make your character move with both WASD and the arrow keys if you want, you just need to have them both on 'rpg_core.js' just like in this picture below:



And that's it, thanks for reading!
4 Comments
Enu 1 hour ago 
Buto el que lee
🌸 幻 | Valinypse  [author] 4 hours ago 
dice 'el que lo lee es gay' :emofdr:
Alejoto 4 hours ago 
Que dise ai no se ingles soy de boca
SATANA 7 hours ago 
great guide:1ac_heart: