I am trying to implement fade in/out effect for sound while changing to a new background sound, and sounds are loaded using collection proxy.
for fade in/out I am using go.animate
– Code block started
local base_url = “music:/music_go#music_intro”
go.animate(base_url, “gain”, go.PLAYBACK_ONCE_FORWARD, 1, go.EASING_LINEAR, 5, 0, function ()
print(“Fade in completed”)
– Code block end
However, I am getting an error “go.animate can only animate instances within the same collection.”
am I missing something or any other ways for sound fade in/out I can try with the proxy collection?