Good to know: mouseX mouseY

Want to know where your mouse is? Look no further.

Try this code:

print(mouseX, mouseY)

Now look in the debug console (beneath the editor pane) — you should see the X and Y positions of the mouse being printed.

mouseX and mouseY are system variables which can be used to tell us where the mouse is.

Next up...

Good to know: if / else