Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Nadarian on Sat 13/06/2020 14:20:10

Title: Slower first FadeIn
Post by: Nadarian on Sat 13/06/2020 14:20:10
Hi!

I'm having problems at setting a slower speed fade in the first time a room charges. Setting this:

Code (ags) Select

function room_FirstLoad()
{
      FadeIn(1);
}


makes the room fade in the usual (quite fast) speed, and then immediately fades in again, but at a slower speed. Is there a way to just slow down the first fade in?


Thanks!
Title: Re: Slower first FadeIn
Post by: Slasher on Sat 13/06/2020 14:45:20
Could have gui black background and have room transition to instant.. time gui to fade out..

The question is: why?
Title: Re: Slower first FadeIn
Post by: Cassiebsg on Sat 13/06/2020 14:53:23
Set room change to instant in the settings, then make your own custom function for fadein/out... you might need an intermediate black room or full screen GUI to make it work properly.

PS. Have no idea if you can change the built in fade speed.
Title: Re: Slower first FadeIn
Post by: Nadarian on Sat 13/06/2020 15:04:04
Well, from the previous room I try to SetRoomTransition to Instant, but still doesn't solve the problem.

Now, instead of doing a first normal Fade in and then the slower one, it instantly pops the room for a fraction of a second, and then it runs the slower fade in from black. How can I make it run the long Fade in (i set on room first load) before it even shows the room?
Title: Re: Slower first FadeIn
Post by: Slasher on Sat 13/06/2020 15:08:42
Put in Room Load... and you still have not explained why you want this..
Title: Re: Slower first FadeIn
Post by: Nadarian on Sat 13/06/2020 15:17:35
When you run the game, first room is Title screen. At any click, you change to the actual first room in the game.
First time running that room, main character presents himself, the situation, an so on, before you get to control him.

Also, the first time you run that room (so switching from title screen to the game initial room), I'd like the Fade in to be longer. It's str¡ctly necessary, but I think it adds a bit of drama to the situation!
Title: Re: Slower first FadeIn
Post by: Nadarian on Sat 13/06/2020 15:26:08
Ok, silly me. Problem SOLVED
I simply had set FadeIn(1) in second place inside the Room First Load function (it was playing music in the first place). Just put it in first place, so the first thing to happen was the slower fade in, and problem solved.
Now music crossfades AFTER the long fade in and not during it as I'd love to, but i'll live with that  (laugh)
Title: Re: Slower first FadeIn
Post by: Slasher on Sat 13/06/2020 15:26:21
May be better off using a Splash GUI and a Black GUI that fades out after clicking Play on splash screen..
Title: Re: Slower first FadeIn
Post by: Nadarian on Sun 14/06/2020 08:25:25
Yes! I guess using rooms for title and credits screens wasn’t the best option from the beginning, so I’ll give that a try!

Thanks Slasher and Cassiebsg!!