Weird issue with the game's rooms and GUI's.

Started by DBoyWheeler, Wed 26/03/2014 22:51:09

Previous topic - Next topic

DBoyWheeler

Okay, this is kind of a weird issue.

See, I'm trying to make my window 640x480, instead of the default 300x240 or whatever.

But when I do that (by deleting the room and then replacing it with another room, and then adjust the hero's starting point for it), the Status Bar and Icon Bars are not directly at the top... they're slightly down a bit, making it look like a stripe between the top and middle of the window, instead of exactly at the top.

I don't know how to fix this so the Status Bar and Iconbar will stay at the top of the window when I change the size of the window.  Any pointers?

Khris

You don't change the size of the window mid-game. You can't anyway.
The game size is specified in general settings. If you create a room with a bigger background image, it'll scroll.
If the image is smaller, it may be offset, I haven't really tried it yet. Maybe that's what's happening.

You should always make sure that your background images are at least as big as the game's native resolution.

DBoyWheeler

So I guess that means I have to do a blank game and make the GUIs from scratch AFTER setting the size, eh?

Crimson Wizard

#3
Quote from: DBoyWheeler on Wed 26/03/2014 22:51:09
See, I'm trying to make my window 640x480, instead of the default 300x240 or whatever.

But when I do that (by deleting the room and then replacing it with another room, and then adjust the hero's starting point for it), the Status Bar and Icon Bars are not directly at the top... they're slightly down a bit, making it look like a stripe between the top and middle of the window, instead of exactly at the top.
Hmm, can't that be because your game is being run in "letterbox" mode? It may happen if your dekstop aspect ratio and game's aspect ratio do not match.

Do you see part of background above GUI stripe, or it's just a black border?

Just a thought... maybe silly one.

DBoyWheeler

Quote from: Crimson Wizard on Thu 27/03/2014 17:39:22

Hmm, can't that be because your game is being run in "letterbox" mode? It may happen if your dekstop aspect ratio and game's aspect ratio do not match.

Do you see part of background above GUI stripe, or it's just a black border?

Just a thought... maybe silly one.

I'm seeing part of the background above the GUI stripe.

SMF spam blocked by CleanTalk