Resolution problem - Possible bug or me just being an idiot.

Started by Snake, Wed 17/05/2006 22:27:48

Previous topic - Next topic

Snake

Hey, Guys,
Got another ignorant question:

Before I start, I am using v2.71

My new game's resolution is set at 640x400. For some reason the editor thinks it is at 320x200. This is very odd and very frustrating when trying to set a GUI at coordinates (320,0) - which would make this particular GUI cover the right half of the screen. When the game is run, you can BARELY see the left edge of the GUI on the far right. So what I have to do is set the GUIs coordinates to (160,0).
I also wanted to set the mouse position in the center of the screen so I put it at (320,200) and it places the cursor in the bottom right hand corner.
I've triple-quadruple checked the setup and it is surely set at 640x400.
The room editor also displays that the room's relative size is 320x200.
All my sprites and backgrounds are all made and imported at 640x400.

What the hell am I missing here?
Thank you,


--Snake
Grim: "You're making me want to quit smoking... stop it!;)"
miguel: "I second Grim, stop this nonsense! I love my cigarettes!"

Ashen

GUIs always use 320x200/240 resolution, regardless of what the games res is (well, except 800*600, which uses 400*300). So, you just have to halve the coord you use (160, 100 instead of 320, 200 etc) as you've already noticed. This is normal, and also applies to GUI sizes - a 320 pixel GUI will be the width of the screen, even in 640x400 - and the 'relative size' of rooms in the editor (which is why objects don't align properly in 640x4*0 res).
I know what you're thinking ... Don't think that.

Gilbert

Actually, mostly everything in AGS uses low res. for alignments.

Snake

Aw, I see. I bet the reason why I never noticed before is because all my other games are in 320x200 (except THE END)... hmm

That explains the confusion :)

Thank you,


--snake
Grim: "You're making me want to quit smoking... stop it!;)"
miguel: "I second Grim, stop this nonsense! I love my cigarettes!"

SMF spam blocked by CleanTalk