#Inventory, mouselock
31 messages · Page 1 of 1 (latest)
(here i'd like to be able to move my mouse, so select future items ect)
inventory is just a gui so my question is just how to unlock the mouse without disabling the firstperson camera lock tho
** You are now Level 2! **
I'm pretty sure there's a property in the screengui or the frame I'm not sure what it's called but it's there
@west frigate the property is called "Modal", set it to true to unlock the mouse when visible
also a quick reminder. For it to behave as you (probably) want it to then you'll have to use the Visible property as well. Simply moving it off of the screen doesn't make it lock your mouse
sure i've done that
that's on screengui? or frame
i don't find it wow.. 😭
not sure what the "correct" way of doing this would be but you could just create an invisible textlabel and have that inside the UI
i'll remake my gui to have imgbuttons (for the items later) thank you for your help !! legend
modal is not on textlabel i tried, only buttons i think
have a good day !
I just checked, I guess the api has a typo in it then
as "GUI element" should mean all elements, they never said only buttons
anyways, happy to help. Goog luck with your game
oh okay, but i didn't find it here, anyway i'm good
thank you !
inactive buttons cause modal to work but will not change the mouse icon
oh, then i'll maybe hum.. try to hide the mouse icon, and make a mouse icon myself with an imglabel, centered on mouse position? don't worry i'm really good to find weird solutions for every problems haha. That's what happen when you try to make a game without watching tutos..
the button doesn't have to be "on" the screen. Just set it's position off of the screen and it will still behave as wanted