- Joined
- Aug 21, 2021
- Messages
- 38
- Reaction score
- 12
- First Language
- english
- Primarily Uses
- RMVXA
hello i am trying to save mouse position in variables x,y and then assign it to a variables in game but i get this error.
10 and 11 are the variables in the game.
any solution?
JavaScript:
TouchInput._onMouseMove = function(event)
{
var x = Graphics.pageToCanvasX(event.pageX);
var y = Graphics.pageToCanvasY(event.pageY);
$gameVariables.SetValue(10,x);
$gameVariables.SetValue(11,y);
};
10 and 11 are the variables in the game.

any solution?