|Topic was automatically imported from the old Question2Answer platform.
Hello, could someone tells me how to start a fadin animation of my background triggered from that script, and changin scene with the fadin?
if event is InputEventMouseButton and event.pressed and event.button_index == 1:
There are probably a very large number of ways to do this but one way would be to attach an animation player to the scene and animate the modulate property to achieve the effect you want. You could probably just set that animation to autoload and it would run whenever you enter the scene.
Thxs, but actually I would like to have it started when the background is clicked, to change scene smoothly. Where’s the modulate property?
And where one would learn to make fadin animation? Followed the godot animation course, but noth about it.
For the effect you want, you need to have both scenes active for the transition. Stack them in a third “manager” scene and animate them both. There are enough tutorials on Youtube and posts where you can find out how animation is done. Also, you should read the documentation.
Footurist | 2018-02-27 04:12
Can’t I simply script the start of the anim at a click on background, runin its fade effect, and then change to the other scene?
And thxs, but there might be too much docs, cause I cannot find one about fadin animation…
You won’t find such a documentation, because a fade in is simply a change of the alpha cannel of the modulate of an object, which you can basically understand as color. So, to fade something you make an animation of the alpha channel. I advise you to watch some of the Youtube tutorials about animation.
Footurist | 2018-02-27 16:32