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.
http://flowlab.io/game/view/944959
So here’s the issue:
- The MouseMove block outputs the mouse position on the screen
- The PointAt Block points to a position in the level
- 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: https://flowlab.io/game/play/685073
Thank you! I had trouble with this for a long time! This is really useful.