3 Replies Latest reply on Oct 10, 2010 6:59 AM by kglad

    Play sound when key is pressed, how?

    antworker

      Hello!
      I have googled the question but I didn't get any answare that helped.

       

      Alright so I'm creating a car game, I have a soundclip in my library called "engine"
      And I want it to play all the time except when I press the up button. When I press the up button I want my other sound "engine_2" to play when the key is pressed down and when released "engine" should start again.
      Both sounds should loop all the time when played.
      I'm a beginner with AS2 so be easy

       

      Thank you.