Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Candle on Sat 29/01/2005 18:51:19

Title: Number 2 background [SOLVED]
Post by: Candle on Sat 29/01/2005 18:51:19
I have a room and i want to use the animating background to have the door open in that background2 when it is time that he can leave the room .
So what code would I use to call the number 2 background ?
background2 has the door open
Title: Re: Number 2 background
Post by: Ishmael on Sat 29/01/2005 18:59:27
Enter room -> SetBackgroundFrame(0);
Open door -> SetBackgroundFrame(1);

verify syntax and frame numbering from the Manual if it don't work...
Title: Re: Number 2 background
Post by: Candle on Sat 29/01/2005 19:02:09
Thanks Ishmael , I new there was some code I just could not find it .
Title: Re: Number 2 background
Post by: on Sat 29/01/2005 20:21:33
Umm... How much of the screen does the door take up? Unless it's at least half of the background, I'd say it would probably be best to make the door an object...
Title: Re: Number 2 background
Post by: Ishmael on Sat 29/01/2005 20:32:01
Filesize-wise the background method might be better, as AGS compresses backgrounds but not sprites.
Title: Re: Number 2 background
Post by: Candle on Sat 29/01/2005 20:47:52
Quote from: Ishmael on Sat 29/01/2005 20:32:01
Filesize-wise the background method might be better, as AGS compresses backgrounds but not sprites.
Thats why I wanted to do it that way .
Title: Re: Number 2 background
Post by: Goot on Sat 29/01/2005 23:13:33
Yeah, but if you have a bunch of different things which move or change in one room, (doors, closets etc...) for example, 3. That means you need 8 background frames in which case objects are a lot more convenient. I personally always use objects.