How to fade in/out when scene change?

WeiyuWeiyu Member Posts: 216

Hello everyone!
I have a problem.
How to fade in/out when scene change?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    To fade out:

    Use a large black actor (or whatever color you want to fade too) and place that over the entire screen.

    Set it's starting alpha to 0

    Use an Interpolate Behavior to interpolate it's alpha to 1

    This will fade the screen to black. Reverse the procedure to fade in.

  • owen_dennisowen_dennis Just a guy, you know. Member, PRO Posts: 236
    edited April 2016

    I normally make an actor that is the fade color you want that's the size of the camera.

    So lets say you want to fade to black on an ipad. Make a black actor that's like 1024x768 and give it an alpha of 0. When you press the "change scene" button or you beat that level or whatever it is you do, spawn that actor in the center of the scene at the top of the layer. Then have the actor interpolate its alpha to 1. Then have a rule inside the actor that says when alpha = 1, change scene.

    On the next scene have a similar black actor already in your scene, then when the scene starts have it interpolate the alpha to 0. When alpha = 0 destroy itself.

    Something like that.

  • WeiyuWeiyu Member Posts: 216

    @owen_dennis said:
    I normally make an actor that is the fade color you want that's the size of the camera.

    So lets say you want to fade to black on an ipad. Make a black actor that's like 1024x768 and give it an alpha of 0. When you press the "change scene" button or you beat that level or whatever it is you do, spawn that actor in the center of the scene at the top of the layer. Then have the actor interpolate its alpha to 1. Then have a rule inside the actor that says when alpha = 1, change scene.

    On the next scene have a similar black actor already in your scene, then when the scene starts have it interpolate the alpha to 0. When alpha = 0 destroy itself.

    Something like that.

    @jamie_c said:
    To fade out:

    Use a large black actor (or whatever color you want to fade too) and place that over the entire screen.

    Set it's starting alpha to 0

    Use an Interpolate Behavior to interpolate it's alpha to 1

    This will fade the screen to black. Reverse the procedure to fade in.

    thank you for answer><"

Sign In or Register to comment.