Slower first FadeIn

Started by Nadarian, Sat 13/06/2020 14:20:10

Previous topic - Next topic

Nadarian

Hi!

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

Code: ags

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!
Teaching film photography in the 21st century.
Now, trying to do it through adventure games.

Slasher

#1
Could have gui black background and have room transition to instant.. time gui to fade out..

The question is: why?

Cassiebsg

#2
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.
There are those who believe that life here began out there...

Nadarian

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?
Teaching film photography in the 21st century.
Now, trying to do it through adventure games.

Slasher

Put in Room Load... and you still have not explained why you want this..

Nadarian

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!
Teaching film photography in the 21st century.
Now, trying to do it through adventure games.

Nadarian

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)
Teaching film photography in the 21st century.
Now, trying to do it through adventure games.

Slasher

May be better off using a Splash GUI and a Black GUI that fades out after clicking Play on splash screen..

Nadarian

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!!
Teaching film photography in the 21st century.
Now, trying to do it through adventure games.

SMF spam blocked by CleanTalk