RPG Maker MV

RPG Maker MV

评价数不足
How to change the movement keys to WASD
由 🌸 幻 | 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!
   
奖励
收藏
已收藏
取消收藏
#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!
5 条留言
Yenzear 8 月 15 日 上午 11:37 
:steamthumbsup:
Enu 8 月 14 日 下午 12:08 
Buto el que lee
🌸 幻 | Valinypse  [作者] 8 月 14 日 上午 9:16 
dice 'el que lo lee es gay' :emofdr:
Alejoto 8 月 14 日 上午 9:05 
Que dise ai no se ingles soy de boca
SATANA 8 月 14 日 上午 5:58 
great guide:1ac_heart: