How do I make the sound go louder and lofs

dondan89dondan89 Member Posts: 150
edited November -1 in Working with GS (Mac)
Hello

How can I make the sound to go louder the faster the actor move the louder the sound gets?

I use accelerometer o this actor, but i think it just got to do with movement,

can anyone give me a free demo template?

thank you
«1

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    change the device.musicVolume (or sound volume if its a sound effect) attribute depending on the actors linear motion. That will drop all the sound or music volumes though so if you have other sound effects or music you have playing as well make a attribute, set that attribute as the music or sound volume in the play music or play sound behavior and change that depending on the actors linear motion
  • dondan89dondan89 Member Posts: 150
    thanks for the response, can you make me a small demo, so I can get see it it better?

    thank you
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    dondan89 said:
    thanks for the response, can you make me a small demo, so I can get see it it better?

    thank you

    Im not home right now, sorry. But if you cant figure it out by yourself or no one else makes one for you ill do it when i get home.

    Cheers
  • dondan89dondan89 Member Posts: 150
    ok, thanks, I will wait if i don't figure it out

    thanks
  • dondan89dondan89 Member Posts: 150
    I will go to sleep, but give me the demo when you can

    thank you
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    You asked this exact question yesterday and I answered it fully, even giving you the exact equation needed. Please don't start a new thread about the same thing two days in a row, especially when the question has been answered. Use the existing thread.

    Here is a demo that I made for you:

    http://ellerker.net/files/SpeedSound.zip

    Ace
  • dondan89dondan89 Member Posts: 150
    thanks for the demo, I will check it when I get home,

    I actually din't find the last thread that's why I started, sorry for that,

    thanks again for the demo
  • dondan89dondan89 Member Posts: 150
    I try the demo, but it did not work on my movement actor, probably because use accelerometer movements, my actor move like a canon, I would like another demo but that moves accelerometer actor moving as canon move rotating

    thank you
  • JPickardJPickard Member Posts: 477
    Ace is (one of) the best. I didn't even know this possiblilty existed. I am sooooo saving this template for later!
  • dondan89dondan89 Member Posts: 150
    Can anyone make me a demo like the above one, but for accelerometer for like canon movements?

    the faster the canon moves, the more it sounds?

    thanks
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Would it just be based on the speed of the rotation?

    Ace
  • dondan89dondan89 Member Posts: 150
    yes
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Just change 'self.motion.linear velocity.x' to 'self.motion.angular velocity'.
    Done :)
    Oh, and I had the file I added as music, so in your equation, of it's imported as a sound instead of music, just change it accordingly.
    Ace
  • dondan89dondan89 Member Posts: 150
    it did not work maybe because my is imported to music, how can I change it to imported to sound, I try to delete and then imported again, but it did not ask me how do i want it to be imported
  • dondan89dondan89 Member Posts: 150
    My actors use accelerometer and moves like canon, which is rotate when moving the device, but is probably because the sound is imported as music, but how can I change the imported to sound?

    thanks
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    I'm not entirely sure what it is you're trying to achieve. I am having trouble envisioning it. If you can record a YouTube video of the cannon and say what you want to happen that'd be great. Alternatively, if you could email your project to me, I can just take a look and do it for you when I get near an Internet connection. Some people are funny (rightfully so) about sending their projects out, so if you don't want to, just make a video or try and go in to more detail with your explanation.

    Ace
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    How long is your sound/what file format?

    Ace
  • dondan89dondan89 Member Posts: 150
    Well, I will not give you my exact project, but I will do is send you a template with a accelerometer, and what I want is that when it moves I want what you had send me on demo, but happen to this demo I will send you
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Okay, cool.

    Band@ellerker.net

    Ace
  • dondan89dondan89 Member Posts: 150
    ok i made a similar thing, but how can i put it here so you can download it?
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Just zip it and email it to me.

    Ace
  • dondan89dondan89 Member Posts: 150
    sorry about this, how do i zip it, i had try right button but i don't see the option to zip it
  • dondan89dondan89 Member Posts: 150
    I had found a similar file on my previous thereath, download that zip file

    http://gamesalad.com/forums/topic.php?id=34654
  • dondan89dondan89 Member Posts: 150
    did you found the file on the link?
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Like I said above, I will do it when I get near an Internet connection.
    I am on my phone right now, I have just moved house and the broadband company haven't activated my connection yet. I am going to my old place in a bit and if I find time, will do it then. I'm just super busy trying to move, with a 15 week old daughter, too.

    Ace
  • dondan89dondan89 Member Posts: 150
    sorry for asking this, but can you tell me how long it will take until you start and send it to me?

    I need to know, so maybe i go to sleep or keep been awake
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Maybe an hour.

    Ace
  • dondan89dondan89 Member Posts: 150
    ok, i will wait,

    thanks
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    Go to bed mate, I'm not going to be able to get to an Internet connection until later.

    Ace
  • dondan89dondan89 Member Posts: 150
    thanks for letting me know, just send it when you can and I will check it when I wake up

    also congratulations on your daughter

    thanks
Sign In or Register to comment.