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
FlxInputText is not getting focus if the camera (gCamera) zoom is not 1. The FlxInputText is in other camera (uiCamera) without zoom, but it seems to get affected by the zoomed camera (gCamera) somehow. If I set the zoom of gCamera to 1 the FlxInputText can focus on mouse click and works as intended.
The text was updated successfully, but these errors were encountered:
I've found that the same behaviour occurs when i call myMainCamera.focusOn(myGameSprite.getGraphicMidpoint());.
I've also found that if the main camera only moves a small amount, the FlxInputText CAN get focus, but it acts like the hitbox is offset by however much the main camera has moved by.
Similar issue appears with multi-camera setups, and extends to more than just FlxInputText. Buttons are impacted too!
I currently have a camera for my game's UI, and in that have an options menu. The click area for the x and y appears to remain at the initial spot regardless of how much I zoom/move the camera around. I can share code if needed!
FlxInputText is not getting focus if the camera (gCamera) zoom is not 1. The FlxInputText is in other camera (uiCamera) without zoom, but it seems to get affected by the zoomed camera (gCamera) somehow. If I set the zoom of gCamera to 1 the FlxInputText can focus on mouse click and works as intended.
The text was updated successfully, but these errors were encountered: