Mouse problem

Hello! Sorry for the two topics in a row, but I need help with one other thing:

In this project I’m trying to make the cursor stay with the mouse and still work with shooting. I’ve tried making the cursor sprite relative to camera, but that just messes up aiming. I can’t explain it: try moving to the other end of the map in this example project and shoot with left-click and you’ll see for yourself.
Thanks in advance!

2 Likes

I have no clue why this happens but heres a solution!

Essentially checks how far the camera scrolled to correctly update the cursors position.
Btw i didnt actually figure this out i got it from @swirlix all credit to them.

3 Likes

Awesome, thanks a lot! To you for giving me this and to @swirlix for creating it!

2 Likes

I think @WoofWoof taught me that

2 Likes

Yes, I, the all knowing WoofWoof, have entrusted this sacred knowledge with you once before. Indeed.