Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: streetcutter on Wed 01/07/2015 03:24:42

Title: [Solved]Centering background in room.
Post by: streetcutter on Wed 01/07/2015 03:24:42
Hey Guys.

Simple problem but haven't been able to find an answer. All my backgrounds are 1024 x 768, but I have room (a hallway) that is smaller, 512 x 512. So obviously it doesn't take up all the space in the room which is what I want for effect. But it sits in the top left hand corner of the screen. Is there an easy way so it is centered in the middle of the room.

Thanks guys.
Title: Re: Centering background in room.
Post by: Grok on Wed 01/07/2015 04:03:15
One simple way would be to make a black 1024x768 image, position the 512x512 image within that image where you want it to be, and use the new 1024x768 image as background.
Title: Re: Centering background in room.
Post by: streetcutter on Wed 01/07/2015 04:31:53
OMG man your a genius! That's so simple is brilliant. Thanks man:)