Static image between rooms?

Started by Paul Franzen, Mon 04/03/2013 02:09:12

Previous topic - Next topic

Paul Franzen

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.
The Beard in the Mirror (formerly testgame) - Out now on Steam! http://store.steampowered.com/app/385840
Other games I've worked on: http://paulmfranzen.com/games/

Demicrusaius

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.
It is better to light one small candle than to curse the darkness.

Paul Franzen

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?
The Beard in the Mirror (formerly testgame) - Out now on Steam! http://store.steampowered.com/app/385840
Other games I've worked on: http://paulmfranzen.com/games/

Crimson Wizard

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

Paul Franzen

Thank you! I'll pay around with this and see if it can make life any easier for me.
The Beard in the Mirror (formerly testgame) - Out now on Steam! http://store.steampowered.com/app/385840
Other games I've worked on: http://paulmfranzen.com/games/

SMF spam blocked by CleanTalk