So I am working on a project that requires me to know two things about Mouse.X/Mouse.Y which the wiki is lacking in. One of which goes as follows: How does zooming the camera in and out affect what will be returned with Mouse.X/Mouse.Y. So for example, if you kept your mouse in the same place, have the mouse return the X/Y position, then zoom out, and have the X/Y value of the mouse return it's value, would it return the same values? The other question asks how Mouse.X/Mouse.Y returns it value. What is the ratio that it returns the value of the X/Y position of the mouse? I'll need to know this value to be able to convert it to a number that I can use.
What does Mouse.X/Mouse.Y return?
1 answer
Mouse.X and Mouse.Y returns the X and Y position of the mouse on your screen, respectively.
So yes, zooming in and out would maintain the same position. I am unsure what you mean by ratio but the max it can go is the size of your screen.
3 comments
Thank you for answering my first question but what I mean by the ratio is what is the minimum number and the max number that it will return as? So for example, it could return -1 for being all the way left of the screen then return 1 for being all the way right of the screen or does it return 0 for all the way left and 180 for all the way right.
I also need to know this same "ratio" for the Y axis if you could answer this question because in the above comment, I focused on explaining the X axis.
The miminum X and Y can return is 0, the maximum would be your screen resolution's X and Y axises.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
You could also just use the Hit property, but the X and Y value return its coordinates