First off, I am a beginner; I’ve only started using Unity 2 days ago so I’m not familiar with a lot of Unity has to over yet.
Anyway, I’m trying to make a game where:
- The audio from the first scene follows my player through each scene and
- on one scene there is a song that progressively gets louder but it isn’t the same scene the first song is started in.
What I have right now is a Camera that has the first Audio Source and the camera doesn’t get destroyed upon changing scenes. Now, I know this is where something weird is happening but I can’t figure out what. I have a new camera on each scene that follows the player because I can’t get the first camera to track the newly spawned player. This camera has no audio listener. The problem with keeping the same player is getting it to spawn on the right coordinates in the next scene. Because of this, it seems the one camera stays in the same spot and doesn’t follow the player to the area with the new music.
My ideal situation would be for the camera and player to go to every scene, in the spot I want them to, and then have the listener on the camera pick up all the sound it can, which it should if it follows the player. Can someone please help me figure out what to do to get it to work the right way?