I want some songs to play during my game and I want waves of enemies to appear during certain times, like when the song gets more intense. Then when the song eases up, the enemies will stop spawning as well.
I’m pretty sure I know how I can spawn a single wave, or systematic waves of enemies from blueprints through events or functions. But I’m wondering what is the most efficient way to make them sync to the music.
Ideally, I could just put triggers in the audio file/ sound cue/ anywhere else in Unreal, so once the current song gets to that point, it would trigger the enemy spawning event. Is that even possible?
The only alternative I see is to connect every single song with an array of numbers to plug into a Set Timer by Event node. But that would make quite a few things more difficult for me, and I keep hearing that those Timer nodes (and especially Delay nodes) are costly to your games performance.
Any ideas? Thanks.