How to fade animation

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By xtoa

Hi guys please give me an idea how to make a fade animation when i picked up the key

example: i have a guard near at the portal , so i want a fade animation that if i picked up the key it will saw that the guard is disapper

you can use Tween and modify the modulate property for example:

$Tween.interpolate_property(self, "modulate", 
      Color(1, 1, 1, 1), Color(1, 1, 1, 0), 2.0, 
      Tween.TRANS_LINEAR, Tween.EASE_IN)

asetyowatir | 2020-11-18 09:13

is there a tutorial on youtube or any video that i can make easier to understand

xtoa | 2020-11-19 10:50

this will explain to you how to use Tween

asetyowatir | 2020-11-20 01:27