Issues with GUI element placement (1.1.2)
by James \"Corvidae\" Williams · in Torque Game Engine · 08/12/2002 (1:57 pm) · 2 replies
I'm currently playing around with the editors while I get some placeholder art together, and I seem to be having some serious issues with the in-game GUI editor. I go into the editor and move objects around, then when I hit F10 again to go back to the game, it seems to "adjust" the element locations so that things aren't where I want them.
For example, I moved the health bar down to the lower-left corner where I wanted it, then went back to the game. Immediately, the bar jumped up to near the middle of the screen (not at all where I placed it). In addition, it doesn't seem to be handling layers correctly... I can tell an item to be in front of another one, but when I go back to the game, it all gets moved around and seems to forget I told it to be on top. Is anyone else experiencing this?
-Corvi
For example, I moved the health bar down to the lower-left corner where I wanted it, then went back to the game. Immediately, the bar jumped up to near the middle of the screen (not at all where I placed it). In addition, it doesn't seem to be handling layers correctly... I can tell an item to be in front of another one, but when I go back to the game, it all gets moved around and seems to forget I told it to be on top. Is anyone else experiencing this?
-Corvi
About the author
#2
I've also had problems with editing a gui after some amount of game play, the controls will move around the same way when I go into the editor. So instead, any time I want to edit a gui I freshly start the game and edit it right away, before even going into the game. Its kind of annoying, but seems to work better.
08/12/2002 (2:28 pm)
I've had other problems with the GUI editor slightly moving things around on me. I almost always use Relative sizing, but I've seen the same types of things with other setups too. Say I have 4 square GuiBitmapCtrl's inside some Gui. If I hit F10 to see what it looks like in game, the gui controls will sometimes be moved around a little (maybe only a couple pixels) and not all in the same direction either. What I've done to get around this is if I make my gui, and get everything looking right I save it. Then when I start the game up again and look at the gui in-game it looks fine.I've also had problems with editing a gui after some amount of game play, the controls will move around the same way when I go into the editor. So instead, any time I want to edit a gui I freshly start the game and edit it right away, before even going into the game. Its kind of annoying, but seems to work better.
Torque Owner Mike Stoddart
Then move the object to the bottom of the screen.
This is what I do for my ammo counter, and it is placed at the bottom right of the screen regardless of resolution (I've only tested it on two resolutions though).
Hope this helps, though it might not clear anything up.