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.
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.
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.