1 decade ago by dmen
I have different game classes that use music.add() and music.play to play background tracks. When I switch to a new level I need to clear the previously playing track. Just using add() again only adds a new track and then I have two tracks playing one after the other. I tried just doing ig.music.tracks = []; but that doesn't seem to do it.
So, how to clear the object?
So, how to clear the object?