How To: Fixing GUI positioning bug
by Dustin Mullen · 06/23/2008 (7:26 am) · 0 comments
How to fix the GUI position bug that will not keep your guiobjects at one place. If you change the resolution 680-800 to 800-600 to 1024 768 the GUIcontrols will either move or not show up. I will show you my version of how I fixed the issue.
Open up your game, go into the GUI editor (F10).
Now, find your GUI control you made or whatever guicontrol you want to move that keeps random reposition itself or making it not visible under certain resolutions. Position the guicontrol you made where you want it, and then hit apply. You would then want to change it's HortSizing and VertSizing.
Now, what I realized is that everything seems to be backwards with torque.
If your new GUIcontrol is near the bottom(where the original healthbar is) you'll want to have the HortSizing as right and Vertsizing as top. Not sure why this is, but it works. You can use this as a guide for where you want to position the new guicontrols. Such as the opposite side of where the healthbar would be left. I'm sure you'll figure it out as you go.
There wasn't a resource posted on how to fix this, so I made one myself. I hope this helps someone like me who was very frustrated with the GUIs moving around.
Open up your game, go into the GUI editor (F10).
Now, find your GUI control you made or whatever guicontrol you want to move that keeps random reposition itself or making it not visible under certain resolutions. Position the guicontrol you made where you want it, and then hit apply. You would then want to change it's HortSizing and VertSizing.
Now, what I realized is that everything seems to be backwards with torque.
If your new GUIcontrol is near the bottom(where the original healthbar is) you'll want to have the HortSizing as right and Vertsizing as top. Not sure why this is, but it works. You can use this as a guide for where you want to position the new guicontrols. Such as the opposite side of where the healthbar would be left. I'm sure you'll figure it out as you go.
There wasn't a resource posted on how to fix this, so I made one myself. I hope this helps someone like me who was very frustrated with the GUIs moving around.
About the author
