{"repo":"KoBeWi/Godot-Universal-Fade","free":true,"listed":false,"github":"https://github.com/KoBeWi/Godot-Universal-Fade","clone":"git clone https://github.com/KoBeWi/Godot-Universal-Fade.git","description":"General-purpose one-line use screen fade effect.","language":"GDScript","stars":112,"topics":["godot"],"license":"MIT","category":"game-templates","readme_excerpt":"Godot Universal Fade Universal Fade does 2 things: - Fades out. - Fades in. That's it. You can use it however you need and easily so. To fade out, you do: And your screen will fade out to black using simple fade effect in 1 second. All magic like instancing effect nodes etc. happens automatically, you just call one method. The effect appears at CanvasLayer 100 and covers entire screen (adjusting automatically to its size). When your screen is faded out, you can do: And it will return to normal. Note that, while fade can be called anywhere at any time, it will fail if you call it right at the project launch (e.g. in ready() method of your main scene). If you want to fade that early for whatever reason, wait a single frame. How to scene transition Fading out and in is cool and all, but you probably want to use it for something other than itself. The most common usage is scene transiton. You can use this piece of code: fade out() and fade in() will return instance of Fade node. It emits finished signal when the effect ends. In case of fade in, the node is automatically freed at the end. In case of fade out, the node stays. You need to remove it yourself (using the reference you obtained) or do a fade in, which will remove it automatically. You can pause the game while fading. The Fade node will process normally during pause. Additional stuff Fade methods come with a few parameters. They are: - time : Time of the effect in seconds. By default it's 1. - color : Color to fade to. B","default_branch":null,"files":null,"tree":[],"storefront":"/r/KoBeWi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KoBeWi/Godot-Universal-Fade/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}