Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Paul Franzen on Mon 04/03/2013 02:09:12

Title: Static image between rooms?
Post by: Paul Franzen on Mon 04/03/2013 02:09:12
Does anyone know if there's a way to keep a static image on-screen between rooms? (i.e., when you change rooms, everything fades out but this one image; the image stays visible during the fade out/in.)

I have a workaround in place right now--instead of changing rooms, I made one room with several different backgrounds, and I'm fading them in and out as needed to simulate changing rooms. That way, the image (an object, in this case, although it doesn't have to be) stays visible even during the fades. It works, but it's not very clean.
Title: Re: Static image between rooms?
Post by: Demicrusaius on Mon 04/03/2013 05:26:21
You could make the object either a GUI or an overlay and then change the default transition type to instant and then when changing rooms use your own fade out function that uses another overlay or GUI that is black.
There's a lot of way to solve this problem, I think, but I'm pretty sure that you're gonna need to turn on instant transitions and create your own custom transition function.
Title: Re: Static image between rooms?
Post by: Paul Franzen on Tue 05/03/2013 00:02:46
Thanks for the quick response! Do you know if there's a function for turning on instant transitions for a particular part of the game, rather than setting it as the default?
Title: Re: Static image between rooms?
Post by: Crimson Wizard on Tue 05/03/2013 00:57:27
Quote from: Paul Franzen on Tue 05/03/2013 00:02:46
Thanks for the quick response! Do you know if there's a function for turning on instant transitions for a particular part of the game, rather than setting it as the default?
SetNextScreenTransition and SetScreenTransition
http://www.adventuregamestudio.co.uk/wiki/Screen_functions#SetNextScreenTransition
Title: Re: Static image between rooms?
Post by: Paul Franzen on Tue 05/03/2013 22:01:40
Thank you! I'll pay around with this and see if it can make life any easier for me.