RPG Maker Forums

I would like to start by saying I am not only new to javascript but also RPG Maker so I am still learning everything. (purchased during the summer sale)

I am using RPG Maker MV and I was hoping to change some default settings. The first thing I wanted to do was make WASD the default movement which I did using the following code referencing the rpg_core.js file.
Code:
(function(){
    Input.keyMapper[65] = 'left';     //a
    Input.keyMapper[68] = 'right';    //d
    Input.keyMapper[87] = 'up';       //w
    Input.keyMapper[83] = 'down';   //s
})();
That seems to work fine as a plugin for starters but there are a couple of other things I'm not sure how to accomplish. The left click by default is also a movement command which I would like to remove. How do I go about rebinding the mouse buttons? I know of the onclick event but I'm not sure if that is the way I would do this. Additionally, how would I differentiate between input.keyMapper for in game and for the main menu if I wanted things to be different? I understand this could possibly be extensive so if anyone would be willing to at least point me in the right direction that would be great. Thank you.

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,038
Messages
1,018,466
Members
137,821
Latest member
Capterson
Top