Control sound

gamedivisiongamedivision Member Posts: 807
edited November -1 in Working with GS (Mac)
I have sound fx above ground and when button is pressed camera moves down underground,I want to be able to slowly reduce the volume of the above sound fx and increase the underground sound fx as the camera moves.

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi, boolean att. SoundCross and integer att. called BelowSound set to 0, another AboveSound set to 1

    When SoundCross is true

    ---if not playing already--
    Play Sound AboveSound
    ---
    (with volume set to AboveSound)

    Play Sound BelowSound
    (with volume set to BelowSound)

    Change Attribute
    Interpolate AboveSound to 0 over 3 seconds
    Interpolate BelowSound to 1 over 3 seconds

    Not tested, but should work out.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • gamedivisiongamedivision Member Posts: 807
    Cheers gyro
Sign In or Register to comment.