Number 2 background [SOLVED]

Started by Candle, Sat 29/01/2005 18:51:19

Previous topic - Next topic

Candle

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

Ishmael

Enter room -> SetBackgroundFrame(0);
Open door -> SetBackgroundFrame(1);

verify syntax and frame numbering from the Manual if it don't work...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Candle

Thanks Ishmael , I new there was some code I just could not find it .

monkey0506

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...

Ishmael

Filesize-wise the background method might be better, as AGS compresses backgrounds but not sprites.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Candle

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 .

Goot

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.

SMF spam blocked by CleanTalk