Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Gabarts on Thu 16/01/2014 13:23:09

Title: Rooms transitions-Fade In-Out effects
Post by: Gabarts on Thu 16/01/2014 13:23:09
I was wondering if is possible to modify the black transitions between rooms, both in terms of effect and waiting time.

I've seen it's kinda instantly fade in-out. Maybe with 2 seconds all black and then back to the new room would be better, is possible to tell AGS this?
Thanks
Title: Re: Rooms transitions-Fade In-Out effects
Post by: AprilSkies on Thu 16/01/2014 13:38:11
I don't know if there's a way to change built-in fade-in fuction properties.

I'm working on a project and I did this way:

I created a black object with the same dimension of the sceen and made it not visible.
On room transition, entering the room (on room-load) I make it visible, then (on room entering after fade-in) I set its transparency to 0; after that I change transparency to 100 (with the speed I want for the fade-in transition) and finally make it not visible again. When the player leave the room I set transparency to 100, make it visible, change transparency to 0 (with a certain speed) and ... change the room.

Maybe it's not a proper way, but for me it works well.
Title: Re: Rooms transitions-Fade In-Out effects
Post by: Snarky on Thu 16/01/2014 14:04:25
Yep, that's the way to do it (you can use the Tween module to simplify the scripting if you want). As a plus, this way the game doesn't need to block during the fading, so if the screen is animated, it doesn't freeze immediately upon fade.
Title: Re: Rooms transitions-Fade In-Out effects
Post by: Gabarts on Thu 16/01/2014 15:10:57
Ok, have to check some classic, like FoA or Monkey Island and see if I can obtain something similar with your suggestion. Thanks
Title: Re: Rooms transitions-Fade In-Out effects
Post by: Khris on Thu 16/01/2014 15:14:36
You'd actually use a GUI, not an object, since a) the GUI will cover everything (except the mouse cursor) and b) you'd have to create the object in every room, while you'll only need one GUI.
Title: Re: Rooms transitions-Fade In-Out effects
Post by: AprilSkies on Thu 16/01/2014 17:46:09
Yep! Actually I'm using an all-black GUI! Sorry! I told you object but of course a GUI should be used!
Title: Re: Rooms transitions-Fade In-Out effects
Post by: Dualnames on Thu 16/01/2014 21:56:28
Instances of how good the tween module and the black gui can be, can be appreciated in both Primordia and Dakota.