How to fade in/out when scene change?
Weiyu
Member Posts: 216
Hello everyone!
I have a problem.
How to fade in/out when scene change?
Comments
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.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
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.
Vote for Nearest Neighbor Scaling option in gamesalad! Let's make our games look truly stunning!
thank you for answer><"