Mouse enabled just not for movement

Indsh

Veteran
Veteran
Joined
Oct 11, 2015
Messages
225
Reaction score
65
First Language
English
Primarily Uses
N/A
What would be the script so that people can still use the mouse in menu etc but it won't move them on the map.


Any direct help or possible directions would be amazing.
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
Yanfly's Picture Common Events lets you block the mouse movement like this... I'm not sure if there is one separate just for this though. There must be.
 

Indsh

Veteran
Veteran
Joined
Oct 11, 2015
Messages
225
Reaction score
65
First Language
English
Primarily Uses
N/A
Great work around thanks
 

Lantiz

PunyMagus
Veteran
Joined
Dec 29, 2012
Messages
723
Reaction score
1,074
First Language
Portuguese
Primarily Uses
Other
Game_Player.prototype.moveByInput = function() {
var direction = this.getInputDirection();
if (!this.isMoving() && this.canMove() && direction > 0) {
$gameTemp.clearDestination();
this.executeMove(direction);
}
};


EDIT:


Didn't check if


$gameTemp.clearDestination();


is needed for interrupting move route, otherwise this line can be removed.
 
Last edited by a moderator:

Indsh

Veteran
Veteran
Joined
Oct 11, 2015
Messages
225
Reaction score
65
First Language
English
Primarily Uses
N/A
Ah, even though now I think I will use the plugin this was what I was originally looking for thank you!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top