Status
Not open for further replies.

alltheyuriz

They System is overrated
Veteran
Joined
Sep 18, 2020
Messages
448
Reaction score
247
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
263
Reaction score
367
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
448
Reaction score
247
First Language
English
Primarily Uses
RMMZ
THank you so much
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,364
Reaction score
15,179
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 Posts

Latest Profile Posts

I always smile to myself when I see someone do the "immediate halt and spin around" from forgetting something. I find it sort of endearing how we all do it without ever being taught to.
I've been viewing trailers and product banners on Steam as part of studying marketing for videogames, specifically JRPGs. There's a huge gap between the top and bottom in terms of quality and even a mixed review game can have a much better look than a game with great reviews. I can see why skilled publishers become attractive (for hire) to many aspiring game devs.
Celebrating a milestone over at Twitter
Sneak peak of my upcoming update! Who's holding her, you may ask? Find out tonight!
10.PNG

Forum statistics

Threads
115,260
Messages
1,088,424
Members
149,862
Latest member
raeellee
Top