User Input - KeyBoard & Mouse

Type: getter with return function 
Stencyl version: 4.0
snippet: 

preview code
getMouseX()
getMouseY()

without import com.stencyl.behavior.Script.*
Script.getMouseX()
Script.getMouseX()

shortcut  requires com.stencyl.Input
Input.mouseX / Engine.SCALE;
Input.mouseX / Engine.SCALE;

shortcut, requires com.stencyl.Input if Engine.SCALE is 1 or your game has only 1x scale. 
Input.mouseX
Input.mouseY

No comments:

Post a Comment