Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Hallamski |
i have
func fade_out(stream_player):
tween_out.interpolate_property(stream_player, "volume_db", 0, -80, transition_duration, Tween.TRANS_LINEAR, Tween.EASE_IN, 0)
tween_out.start()
func _on_Tween_tween_completed(object, key):
object.stop()
object.volume_db = 0 # reset volume
im setting it in _process with fade_out(dayTheme)
and have these too onready var tween_out = get_node("Tween")
, onready var dayTheme = $DayTheme
but when the music should fade out, it doesnt, the duration is 2 seconds and in those 2 seconds the volume doesnt change, and after the 2 seconds it just cuts out.