Problem with "mousemove" block

I’m trying to make a game where you have a “pointer” that lets you interact with objects. It’s supposed to point at the mouse but whenever I use mousemove to make it point at the mouse, it doesn’t have 360 movement.

So here’s the issue:

  1. The MouseMove block outputs the mouse position on the screen
  2. The PointAt Block points to a position in the level
  3. The screen and level coordinates are not the same, since the Camera is scrolling

You can fix that by adding the camera position to the screen position. Here’s an example:

Thank you! I had trouble with this for a long time! This is really useful.