Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: jamesreg on Tue 30/03/2010 01:15:24

Title: Importing a BG which is smaller then the room size for gui use
Post by: jamesreg on Tue 30/03/2010 01:15:24
I have game settings set to 800*600

I want to import a background which is smaller then this at 800*445

I want black space at top of 800*55
and black space at the bottom which is 800*100

which I will use for some gui's

I am trying to figure out how I posistion the room to do this
is it the edges section on the side panel?

I see a menu on side panel that says edges and

bottomedgeY
leftedgex
rightedgex
topedgey

but not sure how I need to put the numbers in there if thats the right place any able to help?

Title: Re: Importing a BG which is smaller then the room size for gui use
Post by: monkey0506 on Tue 30/03/2010 01:19:33
The edges are used to determine, for example, if the character is walking out of the room (I think) and for scrolling rooms (I believe). I've never actually used them so I could be way off here.

But if the actual background is smaller than the game resolution, just letterbox the background in Photoshop or Paint or whatever program you're using. Position it within the 800x600 grid as you want it to appear in-game, and fill the remaining area with black.
Title: Re: Importing a BG which is smaller then the room size for gui use
Post by: jamesreg on Tue 30/03/2010 01:22:02
I was trying to avoid this as if there is a way to put the graphic at a certain location i can reduce my sprite file in half which is needed
Title: Re: Importing a BG which is smaller then the room size for gui use
Post by: jamesreg on Tue 30/03/2010 01:43:49
Yeah your right thats the controls for walking off the screen
Title: Re: Importing a BG which is smaller then the room size for gui use
Post by: Khris on Tue 30/03/2010 01:52:17
Quote from: jamesreg on Tue 30/03/2010 01:22:02
I was trying to avoid this

Unfortunately, you can't.
Title: Re: Importing a BG which is smaller then the room size for gui use
Post by: monkey0506 on Tue 30/03/2010 01:53:54
AGS won't allow you to import a background image that doesn't match the game resolution. Are you using sprite compression?