How do you disable click mode?

Status
Not open for further replies.

alltheyuriz

They System is overrated
Veteran
Joined
Sep 18, 2020
Messages
430
Reaction score
237
First Language
English
Primarily Uses
RMMZ
I want to disable click movement and only allow ASWD to be used as movement in the game. If anyone can help me that would be great
 

Nolonar

Veteran
Veteran
Joined
Feb 18, 2018
Messages
242
Reaction score
352
First Language
French, German
Primarily Uses
RMMZ
If you only want to disable movement, you can create a plugin with following code:
Code:
Scene_Map.prototype.isMapTouchOk = function () { return false; };
Your plugin would be literally just this one line.

Note that this will also disable movement using touch, so is not suited for projects that also need to work on smartphones or any other devices that don't have a keyboard.

To map WASD to movement, you'll need to add the following lines to your plugin:
Code:
Input.keyMapper[87] = "up";
Input.keyMapper[65] = "left";
Input.keyMapper[83] = "down";
Input.keyMapper[68] = "right";
 

alltheyuriz

They System is overrated
Veteran
Joined
Sep 18, 2020
Messages
430
Reaction score
237
First Language
English
Primarily Uses
RMMZ
THank you so much
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,910
Reaction score
15,002
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

Fire-Emblem Style Level Up System, Boost on Class Change, And Animated Arrows | RPG Maker News #115

Why keyboards don't sleep? Because they have two shifts.
I realized a while ago my game was toooo big in scope. even now I wonder am I trying to do too much by myself. and that's after completely changing the format of the game.
Last week at SLC. Cali awaits. TBH I love SLC more than SF.
Back home now. I had a good time, but I had a checkup this morning so I had to come home for that. Now I'm just waiting for my therapist meeting tomorrow...
Decided to work on Wishful Wanda today. Since it's a BFB spinoff game, I decided to make the Huang brothers
Easter eggs! I'm actually pitching this to the BFDI team, btw.

Forum statistics

Threads
113,934
Messages
1,078,522
Members
148,044
Latest member
Sernyx
Top