For Project Scuttler, but anyone could use this. What I'm thinking is that we can have a sort of in range hitbox for enemies, where if their hitbox collides with our hitbox, then aggressive music plays. When the enemy is killed, then the hitbox goes away, and then the music becomes passive again. There should be a bit more rigorous testing but this is the basics of it.
coding and everything by me.