Hey I am working on a 2.5D platformer shooter game and I’m struggling to get the mouse to be limited to a certain distance around the player when using the right analog thumb stick on the game pad. Does anyone have any idea on how I could achive this?
dont limit the mouse that could cause issues, create a ‘crosshair’ widget that follows the mouse and limit is position.
you do that by updating the crosshair position on tick but clamping its distance from the player
Thank you! I’ll give that a shot what blueprint node do you think will be best to use to limit the position?
you’ll use something like set position in viewport on the widget so from there just need some math, get the player location, direction to the mouse, clamp distance at x, add it all together and profit ha
Awesome thank you
Managed to get it working although I used a slightly different method. I used the viewport size to then set a cursor limit using clamps at x and y. All works as intended, thank you for the help!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.