How do you disable click mode?

Status
Not open for further replies.

alltheyuriz

They System is overrated
Veteran
Joined
Sep 18, 2020
Messages
429
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
241
Reaction score
351
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
429
Reaction score
237
First Language
English
Primarily Uses
RMMZ
THank you so much
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,895
Reaction score
14,995
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

IlluminaughtyStore.jpg
:kaojoy:
Welcome to the Illuminaughty store.
Yes... they are "wearing Illuminati branded everything, reclining on huge Illuminati body pillows. Occasionally they'll "teehee" at each other and have pillow fights with Illuminati branded pillows full of hundred dollar bills."
BCj
Working on Escalia again, feels good. Have this overwhelming urge to map as well, but need to get some extra tiles commissioned first :D
Lee Sang wrote on Bandito's profile.
Hi, I've just tried your plugin "Game is Active" and when I tested it on Android, it gave me an error, something about "Cannot read property 'underfined' of underfined.
With my project, I want the player to have access to all the tools they need to get from New Game to Credits as soon as possible; I want the player's progress to only be impeded by the player not knowing how to use the tools the game provides.
Just a little close up shot...
w2xZocX.jpg

Forum statistics

Threads
113,867
Messages
1,078,033
Members
147,957
Latest member
Broskiman1
Top