Music related question

BonepileGamesBonepileGames Member Posts: 194
edited March 2014 in Working with GS (Mac)

Hello to GS Community,

I have almost finished my first game, working on the sound right now.

I would like to ask you:

If I have started a theme song to play in the menu scene, is it possible to adjust the volume when the next scene appears?



Main menu (song start playing)

Clicking Play button

The song still playing

Play scene starts the song is still there playing without being stopped

BUT with a volume of 0.5 instead of the default 1?




Thank you in advance

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    Yes.

    When your scene starts, add a Change Attribute behavior that resembles this:

    Change Attribute Device.Audio.Music Volume to 0.5.

    That should work.

  • BonepileGamesBonepileGames Member Posts: 194

    @Braydon_SFX‌

    Thank you for your response.

    I would like to ask you for your suggestion

    When I put a Play Sound behaviour in one of the actors in the Menu Scene without checked "loop", it goes on playing when changing the scene with the change attribute Device.Audio.Sound volume to 0.3 but when I get back to Menu scene the same song starts again, while the old one is still playing, which means they are playing at the same time.

    If I put a Play sound behaviour in one of the actors in the Menu Scene with "loop" checked, it doesn't keep on playing when the scene is changed. Tried Play Music "current music" in the Play Scene but nothing really happens.

    I would like to have a song playing in the menu and play scene. Menu scene with volume 1, play scene with volume 0.3. When we go from play scene to menu scene to make it volume 1 again. Have you got any ideas how should I do that, please?

    Thank you

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    Place your Play Music behavior on a scene before the menu -- this way it doesn't restart when you enter the menu. That should fix your issues.

  • BonepileGamesBonepileGames Member Posts: 194

    Should I create blank scene located before the menu?

    Because Menu is my very first scene

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    Yes. Add a short timer to the scene so there is a little delay before the change scene. This will allow your music to begin playing.

  • BonepileGamesBonepileGames Member Posts: 194

    On Play Music
    I do have only Resume current music option. Why is that? Pause Music doesnt seem to work when I have Play Sound before that.

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    That because music and sound aren't the same thing. You want your music to be a music file and played in a Play Music behavior. All of your sounds should be sound files and be played in the Play Sound behavior.

  • BonepileGamesBonepileGames Member Posts: 194

    Can you please then tell me how GS differentiate music from sound?

    .m4a .wmv is music
    .ogg is sound

    Is that the way GS make the difference?

Sign In or Register to comment.