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
Enter room -> SetBackgroundFrame(0);
Open door -> SetBackgroundFrame(1);
verify syntax and frame numbering from the Manual if it don't work...
Thanks Ishmael , I new there was some code I just could not find it .
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...
Filesize-wise the background method might be better, as AGS compresses backgrounds but not sprites.
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 .
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.