#Inventory, mouselock

31 messages · Page 1 of 1 (latest)

west frigate
#

hi, i'm making a first person survival game. I just have a small question, do someone know how to unlock the mouse in the inventory i made ? i tried with Mouse.Locked, but i don't know it didn't work, i'll send few screens you understand what i'm saying, thx

#

(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

trail bloomBOT
#

studio** You are now Level 2! **studio

amber matrix
west frigate
#

maybee? i tried but i didn't find it

#

i'm probably just stupid but i didnt find it

young wharf
#

@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

west frigate
#

i don't find it wow.. 😭

young wharf
#

gui objects. not the screengui itself

#

it's under the tab "data"

west frigate
#

oh

#

my gui is like that

#

Modal is not on frames too..?

young wharf
#

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

west frigate
#

i'll remake my gui to have imgbuttons (for the items later) thank you for your help !! legend

west frigate
#

have a good day !

young wharf
#

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

west frigate
west frigate
young wharf
#

inactive buttons cause modal to work but will not change the mouse icon

west frigate
#

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..

young wharf