Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: passer-by on Sat 24/09/2005 18:53:24

Title: Player choses background
Post by: passer-by on Sat 24/09/2005 18:53:24
How can I do that?
I mean, it is the same room but three different colours for example...and I want the same reactions. If I make three separate rooms, the player can't have the same results. Or am I missing something?

Thanks
Title: Re: Player choses background
Post by: Ashen on Sat 24/09/2005 18:58:44
QuoteIf I make three separate rooms, the player can't have the same results.

What do you mean? Just save the room 3 times, with 3 different numbers and change the backgrounds accordingly. Or, add the different BGs as frames for an animated background, and lock/change them using SetBackgroundFrame()
Title: Re: Player choses background
Post by: passer-by on Sat 24/09/2005 19:03:29
Quote from: Ashen on Sat 24/09/2005 18:58:44
What do you mean? Just save the room 3 times, with 3 different numbers and change the backgrounds accordingly.


I'm not sure I understand...
Do I have to save three different rooms adding the same hotspots etc and let the player choose one of them with an " A B or C button"? Which means I will have to do it three times for each room that the previous one leads to?
Title: Re: Player choses background
Post by: GarageGothic on Sat 24/09/2005 19:05:03
Yes, you would if you used that solution.

But just go with the animated background (that is, multiple background frames to toggle between). That would be the best way in your case I think.
Title: Re: Player choses background
Post by: Ashen on Sat 24/09/2005 19:12:19
QuoteDo I have to save three different rooms adding the same hotspots etc

No, I meant save the room as (for example) room1.crm then, change the colour scheme and resave it - hotspots etc intact - as room2.crm, then again for room3.crm. And you'd need a variable to track which had been chosen, for any non-changed rooms that link to it.

But, as GarageGothic said, the 'toggle background frames' method would probably work better for you, as well as using less rooms (although you'll probably still need a variable to track which frame to display).
Title: Re: Player choses background
Post by: passer-by on Sat 24/09/2005 20:26:06
Thanks, I'll try it.