|
I have set a gui position with "Screen.width*,Screen.height *",but when I resize the Screen window,the gui didn't move to relative position .why?
(comments are locked)
|
Screen.width: 0% = Left side. 100% = Right side. Screen.height: 0% = Top. 100% = Bottom. If you ALWAYS want your group to be in a specific spot on screen regardless of resolution you cannot use absolute numbers in your code. Your code should probably look something like:
This is because, obviously, different resolutions have a different number of pixels. So when you say you want it 500 pixels from the right side of the screen that's almost on the left side of the screen in a Web Player, or middle-right side in a Full screen application.
(comments are locked)
|
|
The (0,0) point in GUI is the top-left corner. Your buttons move horizontally though maybe not the way you want. I suggest you change your magic numbers atleast for the values of the group to public variables atleast or do somekinda calculation like where is the center of the screen or whatever. But the reason your controls don't move vertically is that the Hope that was clear enough that it helped.
(comments are locked)
|

i don't know about others but I'd need to see the actual gui command's code to be able to tell the problem
have already showed the code,think you!