"Error: The resource was not found (-3)" when calling resource.set_sound

resource.set_sound is not used on a sound component, but on the resource of a sound component. So you need:

resource.set_sound(go.get("/game#sound", "sound"), sfx)
4 Likes