Hello, I am using information from this thread:
forums.rpgmakerweb.com
I have tried using $gameVariables.setValue(id, value); but keep getting 0's. I am trying to do it within the "Script" event command. I tried pasting it in a plugin but couldn't get it to work.
How am I able to set in-game variables to the mouse cursor's x/y positions (without clicking)?
Mouse Cursor Position
How to get a real cursor position? (not the click position, I know about TouchInput.x || TouchInput.y)
forums.rpgmakerweb.com
JavaScript:
TouchInput._onMouseMove = function(event) {
var x = Graphics.pageToCanvasX(event.pageX);
var y = Graphics.pageToCanvasY(event.pageY);
this._onMove(x, y);
console.log(x+' '+y);
};
I have tried using $gameVariables.setValue(id, value); but keep getting 0's. I am trying to do it within the "Script" event command. I tried pasting it in a plugin but couldn't get it to work.
How am I able to set in-game variables to the mouse cursor's x/y positions (without clicking)?