I’m sure this question has been asked on the forums before but I’m not sure how best to phrase it so I’m not having much luck searching for an answer.
I’m trying to move a vertical line across the screen so that it exactly matches the mouse position. My camera is at 0, 0, 100 and looking at the center of the screen. I need to figure out how large it’s viewing space is so I can find the percentage of the screen that the mouse is over. Sort of like this:
totalSceneWidth * (stage.mouseX / stage.stageWidth)
any help is greatly appreciated :D