Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make the mouse uncentered without leaving the first person view?

Asked by 7 years ago
Edited 7 years ago

So I was trying to make a first person game, when I press some keypad like "C" it should open the gui and the mouse will uncentered. Can someone now what method should I use to make the mouse uncentered. Thank you.

0
There's a property for it. I can't check right now because the wiki is blocked on my school's internet, but if it's still not answered I'll look when I get home. Perci1 4988 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

ImageButtons and TextButtons have a Modal property, which when set will allow the player to freely move their mouse. Note that it only applies when the button is visible, so you don't need to worry about setting/unsetting it through a script, and you only need to set it on one button.

0
Thank you for the answer, I really understand now what method should I use :) aditya200 3 — 7y
Ad

Answer this question