I'm looking for a script where the actor follows the mouse looks in that direction where the mouse

basically look up down right left

it would be a nice funny feature in a game
bump
bump
Hey ♫

I wanted to take a JS request to see what i can do, and here we go! Just install it like any other plug in!

Spoiler
Code:
/*: * @plugindesc  KaiMonkey's Player Face Mouse * @author Kaimonkey * @param Disable While Moving * @desc Set to True to avoid crazy ballerina sliding shenanigans * @default true */(function() { //Start Plugin    var parameters = PluginManager.parameters('KaimonkeyMouseFace');    var disableWhileMoving = String(parameters['Disable While Moving']);	/*	TouchInput._onMouseMove = function(event) {	    if (this._mousePressed) {	        var x = Graphics.pageToCanvasX(event.pageX);	        var y = Graphics.pageToCanvasY(event.pageY);	        this._onMove(x, y);	    }	};	*/	_km_player_face_onMove = TouchInput._onMouseMove; //Create Alias	TouchInput._onMouseMove = function(event) {		_km_player_face_onMove.call(event); //Call Alias		if(!$gamePlayer || !$dataMap){			return;		}		if(disableWhileMoving=="true"){			if($gamePlayer.isMoving()){				return;			} 		}		var px = $gamePlayer.scrolledX()*48 + 24;		var px = $gamePlayer.scrolledX()*48 + 24;		var mx = event.x;		var my = event.y;		var x = mx - px;		var y = my - px;		if(y > x && y > -x){			$gamePlayer.setDirection(2);		}else if(y < x && y < -x){			$gamePlayer.setDirection(8);		}else if(x > y && x > -y){			$gamePlayer.setDirection(6);		}else if(x < y && x < -y){			$gamePlayer.setDirection(4);		}	};})(); //Close Plugin 
it doesn't work for some reason it freezes RPG Maker mv
Hey ♫

Sorry, I am still getting used to the new Plug in method- I forgot i can't just send people code any more!

You'll have to save it into a file with the exact name "KaimonkeyMouseFace.js", then see if it work!

Thanks!

/Kai

EDIT:
Whoops, looked like there were still some bugs anyway- this version definitely works! 

Spoiler
Code:
/*: * @plugindesc  KaiMonkey's Player Face Mouse * @author Kaimonkey  * @param Disable While Moving * @desc Set to True to avoid crazy ballerina sliding shenanigans * @default true */(function() { //Start Plugin     var parameters = PluginManager.parameters('KaimonkeyMouseFace');    var disableWhileMoving = String(parameters['Disable While Moving']);/*TouchInput._onMouseMove = function(event) {   if (this._mousePressed) {       var x = Graphics.pageToCanvasX(event.pageX);       var y = Graphics.pageToCanvasY(event.pageY);       this._onMove(x, y);   }};*/ _km_player_face_onMove = TouchInput._onMouseMove; //Create Alias TouchInput._onMouseMove = function(event) {_km_player_face_onMove.call(event); //Call Aliasif(!$gamePlayer || !$dataMap){return;} if(disableWhileMoving=="true"){if($gamePlayer.isMoving()){return;} }var px = $gamePlayer.scrolledX()*48 +24;var py = $gamePlayer.scrolledY()*48 +24;var mx = event.x;var my = event.y;var x = mx - px;var y = my - py;if(y > x && y > -x){$gamePlayer.setDirection(2);}else if(y < x && y < -x){$gamePlayer.setDirection(8);}else if(x > y && x > -y){$gamePlayer.setDirection(6);}else if(x < y && x < -y){$gamePlayer.setDirection(4);}};})(); //Close Plugin
now it works thz lot man

I'm also going to put it up as a file for other people to download if that's okay with you

I hope it's okay for people to use it in games to sell and as well trying to build a collection of non serious 

Plugins for small things the next one I would like to look for is one for idle animations I'm going to make a specific thread for that one 

Original thread: https://forums.rpgmakerweb.com/threads/im-looking-for-a-script-where-the-actor-follows-the-mouse-looks-in-that-direction-where-the-mouse.47990/