Page 1 of 1

Destroy Layer while playing a sound only once

Posted: Fri Apr 24, 2020 11:48 am
by LuziferSan
Hey guys,

so I want to destroy some blocks in my level once the players reaches a certain place. This is how it looks:


Image

Thing is, I also want it to make a sound. But since I have to place the trigger multiple times to make sure the player doesn't miss it,
the sound will play for every trigger touched, even if the layer itself is already invisible.

Does anyone know how I can make it so that the sound already plays once, when the layer actually disappears?

Re: Show Layer with sound

Posted: Fri Apr 24, 2020 11:50 am
by Emral
You could place one trigger, place it half a screen further right on a layer that disappears in the event, and have it activate the event with the "Activate" trigger instead of the "Death" trigger. It will trigger its own hiding when it comes onscreen.

Re: Show Layer with sound

Posted: Fri Apr 24, 2020 11:52 am
by Cedur
shouldn't it also work with audio sources? just place them above the triggers, and make them all disappear at once?

Re: Destroy Layer while playing a sound only once

Posted: Fri Apr 24, 2020 11:54 am
by LuziferSan
Yep, I didn't think of having the triggers disappear once acitvated. I'm new, have mercy :D
But thanks a lot, it worked perfectly.