Event to interrupt sound with another?

In the game I’m currently working on there is a menu where you need to hold spacebar to load a character portrait box to completion which triggers a little ‘snap’ sound and a tick on screen to show you have fully powered up - and you keep this held while you wait for all players to fully power up or load up to proceed.

However, if you let go of spacebar, your character portrait ‘powers down’ and you’ll need to hold spacebar again to ‘power it up’.

I have 2 sounds:

  1. Spacebar ‘power up’ sound with a snap at the end (when spacebar is held)
  2. Spacebar ‘power down’ sound (when spacebar is let go)

I need the ‘power down’ sound to interrupt the ‘power up’ sound in case the player lets go of spacebar in the middle of a ‘power up’ phase. How best can i do that in FMOD?

So here’s all the things I need to cover:

  1. Player holds spacebar - ‘power up’ sound loads and we have a little ‘snap’ to completion (this is all on the one audio sample)

  2. Player lets go of spacebar (which they can do after a full power up) - this triggers ‘power down’ sound.

  3. Player is holding space bar but lets go before the full ‘power up’ sequence is done therefore interrupting it with a ‘power down’ sound.

I hope this isn’t too confusing but how best can I achieve all this in FMOD?

Thanks!

Ok, I’ve gotten a little further and have basically been able to set up everything except for one little quirk. I can do the interrupting no problem.

I’ve made a little screen recording explaining exactly what I need to execute - Screen Recording 2024-10-31 at 14.03.44.mov - Google Drive

There’s a few different ways in which you could do this.

For example, if you take the event from your video, replace the sustain point with a short loop region that does not overlap either instrument, and stretch the transition region so that it covers both the “power up” instrument and the loop region, you’ll find that the event works exactly as you describe.

Genius! Thanks Joseph :pray: