I’m trying to make a game were the player moves towards the mouse. I set up a simple way to move the player using a Vector2.MoveTowards to move towards the Input.mousePosition. But my mouse position values are way to large and it still counts my position when my mores is off the game screen.
I tried using a Camera.ScreenToWorldPoint but It did not work after I implemented it (However I may have implemented it wrong as this is the first time I am using Camera.ScreenToWorldPoint).
RunningPath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.