Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: cpage on Wed 22/03/2006 01:13:04

Title: Different versions of a room (SOLVED)
Post by: cpage on Wed 22/03/2006 01:13:04
I cant relly go into detail without giving away too much of the game but I need to have about 7 versions of each room (color changes) in a small project I'm working on so basicly my question is, Do i have to make each version of the same room a different room in AGS? is there a way around that? I mean it wouldnt be hard just using flags to get to the right one but i'm just looking for alternatives.

Thanks
Chris
Title: Re: Different versions of a room
Post by: Gilbert on Wed 22/03/2006 01:46:47
Use different background frames.

But I think there're only 5 frames per room so it may not help you all, yet.
You can, however, use two rooms, with their background frames, thus reducing teh number of room files.

Alternatively you can import some of the room backgrounds as sprites and raw-draw to change the backgrounds.
Title: Re: Different versions of a room
Post by: cpage on Wed 22/03/2006 03:36:46
Thanks for the quick reply
Quote from: Gilbot V7000a on Wed 22/03/2006 01:46:47
You can, however, use two rooms, with their background frames, thus reducing teh number of room files.
yeah thats what I thought I might wind up doing.
Quote from: Gilbot V7000a on Wed 22/03/2006 01:46:47
Alternatively you can import some of the room backgrounds as sprites and raw-draw to change the backgrounds.
Now when you say import as a sprite (pardon my stupidity) do you mean as an object?
Title: Re: Different versions of a room
Post by: Gilbert on Wed 22/03/2006 03:53:38
Sprite, import in the sprite manager.
To raw draw a sprite image onto the background, you may check out this (http://www.adventuregamestudio.co.uk/manual/RawDrawImage.htm).

No need to create an object in a room.
Title: Re: Different versions of a room
Post by: SilverWizard_OTF on Wed 22/03/2006 11:40:06
One good solution is to set each different version (if they are not a lot) as bachground images of the same room. And with a script command SetBackground Image you can make this you want. Well, if want to reveal any object also, you can have something like "If backgroundimage is 2 then...."
Title: Re: Different versions of a room
Post by: cpage on Wed 22/03/2006 23:15:41
Great! thanks for the help guys! after 6 years of being here I may even finish a game!