- Home /
Question by
DevonJavaScript · Oct 19, 2011 at 08:49 PM ·
cameramovementmouseworld
Move camera when mouse is on the edge?
How would I do this/any examples?
E.G. Mouse is on the right most 3 pixels so it moves but any more inner it doesn't move at all.
Comment
Answer by gfr · Oct 19, 2011 at 09:53 PM
Check `Input.mousePosition` against Screen.width
/ Screen.height
.