play sound when moving sprites

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default play sound when moving sprites

    ive basically created a sprite (in this case car) and when i press the up, down, left or right key, to move the car - i want it 2 play a sound (e.g. engine roaring)! ive managed to play a sound when a frame loads up but cant do it this way!
    how do i that?
    help plzzzzzzzzz!


    j1mmy webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. need help about moving sprites
      helle to all, i am trying to make a little game. i have a character in the middle of the screen. and when i click somewhere on the stage my...
    2. scroll behavior moving my sprites, can I avoid this?
      How can I use the scroll behavior with a text member without the behavior modifying the position of my up and down arrow and my dragger. I want them...
    3. Moving Sprites
      I'm quite new to Director and trying to move one of my cast on my stage by using the following code sprite(57).locV=127 which moves the correct...
    4. Moving sprites in the direction of the mouse movement.
      Hi All, I am using Director 8 and have a question. I'm somewhat of a newbie so be kind! :) I have 10 sprites . A rectangle is the background...
    5. Moving sprites with locH and locV
      I've used the forums quite alot and usually find my answer by searching the archives. I have run into a problem which continues to frustrate me...
  3. #2

    Default Re: play sound when moving sprites




    -- call this handler whenever you want to play the sound file
    -- call it with the name of the sound file member you want to play.
    -- read about controlling sound in the lingo dictionary.

    on playsound whichsound

    if sound(5).busy then exit
    puppetsound 5, whichsound
    end







    rick@mcorp webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139