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,381
Reaction score
15,187
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

Another comic with Backstage Malak...
If you want to ask him anything, you can ask on my DeviantArt page! I'm not sure if you're allowed to do it here.
Forum tip of the day ...
If you get a temporary suspension for being a jerk to people who are trying to help you, and arguing with mods and admins, don't go making new accounts. Chances are, if you p**s us off enough to suspend you for a week, we're not going to hesitate giving you a permanent ban when you give us a reason.
E_6fAErVkAQILXu.png
I'm so close to releasing my game on steam! :blush::blush::blush:
Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.

Forum statistics

Threads
115,287
Messages
1,088,661
Members
149,913
Latest member
badalias
Top