You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When putting the mouse cursor at the top-left position on flixel's screen, trace(camera.x, camera.y is returning -80, -160 and trace(FlxG.mouse.getScreenPosition() is returning (x: 80 | y: 154)
Expected behavior:
When putting the mouse cursor at the top-left position on flixel's screen, trace(camera.x, camera.y should return -80, -160 and trace(FlxG.mouse.getScreenPosition() should return (x: 0 | y: 0)
(also note that assuming that this is also affected by #3199
The text was updated successfully, but these errors were encountered:
Looks like there was some misunderstanding on my part, I just don't think there's any publicly accessible functionality within FlxPointer to get the global screen position of the mouse, changing the issue name to reflect that!
01010111
changed the title
Camera position affects FlxPointer.getScreenPosition
No publicly accessible functionality to get global screen position in FlxPointer
Jul 4, 2024
Code snippet reproducing the issue:
Observed behavior:
When putting the mouse cursor at the top-left position on flixel's screen,
trace(camera.x, camera.y
is returning-80, -160
andtrace(FlxG.mouse.getScreenPosition()
is returning(x: 80 | y: 154)
Expected behavior:
When putting the mouse cursor at the top-left position on flixel's screen,
trace(camera.x, camera.y
should return-80, -160
andtrace(FlxG.mouse.getScreenPosition()
should return(x: 0 | y: 0)
(also note that assuming that this is also affected by #3199
The text was updated successfully, but these errors were encountered: