I have a fireball being shot from another part of the level and the sound of it is still being played no matter where I am in the level. So my question is: how do I keep the sound from playing when I'm not near the source.
did you stop the audio when go to another level ?
The fireballs are only in the second level so far. I only stop some music at te end of the level. Are you understanding what i need help with. I don't know how to explain this problem any further. LOL. Sorrry.
oh, sorry..
then maybe you can compare the distance between the fireball and it's source, using "distance()" expression
It's like, I'm at the start of the level, and the fireball is being shot from a small cannon from the very bottom of the level and the sound of the lava being shot is being played whether or not i'm Near the cannon or the fireball.
Develop games in your browser. Powerful, performant & highly capable.
.....