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

  1. #1

    Default basic panning

    I'm trying to get a sprite to move horizontally when I hold down the cursor
    key. Except it won't keep panning while I hold the key down. I don't know
    how to add a "repeat while the keydown" in here?

    I've got:

    on exitframe
    --right arrow
    if keyPressed(124) then
    set the locH of sprite 25 = the locH of sprite 5 + 8
    end if
    go the frame
    end


    Rowan Ferguson Guest

  2. Similar Questions and Discussions

    1. Sound panning
      Hi, Hope someone can help. I have created a 3d world in director. Objects in the world emit sounds but so far I can only control the volume. (i.e...
    2. Live panning of sound
      Hi, I'm trying to use live panning of sound in a 3D world that I have created. I have four objects which each emit a seperate sound and the volume...
    3. Panning while editing text
      Maybe this has already been discussed, but I can't find the answer anywhere. Pressing the spacebar, as a shortcut for the Hand tool, is great, and...
    4. Motion Tweens: Panning Pictures in Stationary Mask
      The New York Times has Flash slide shows on their site. There is a motion tween effect they use that I can not figure out. If anyone could give me...
    5. Panning Large Images
      Hello everyone, I'm working on a project where the client wants to pan very large images left to right across the screen. This is easy enough to...
  3. #2

    Default Re: basic panning

    You had the wrong sprite number (you had 5 instead of 25):

    set the locH of sprite 25 = the locH of sprite 25 + 8
    ^^

    I hope that helps.

    Thanks,
    Jerry


    "Rowan Ferguson" <rowan@netimpact.com.au> wrote in message
    news:br5sbs$q46$1@forums.macromedia.com...
    > I'm trying to get a sprite to move horizontally when I hold down the
    cursor
    > key. Except it won't keep panning while I hold the key down. I don't know
    > how to add a "repeat while the keydown" in here?
    >
    > I've got:
    >
    > on exitframe
    > --right arrow
    > if keyPressed(124) then
    > set the locH of sprite 25 = the locH of sprite 5 + 8
    > end if
    > go the frame
    > end
    >
    >

    Jerry Ndo Guest

  4. #3

    Default Re: basic panning

    Thanks Jerry,

    I've never learned to count past 10.


    "Jerry Ndo" <ndookie2000@yahoo.com> wrote in message
    news:br5u3d$sd4$1@forums.macromedia.com...
    > You had the wrong sprite number (you had 5 instead of 25):
    >
    > set the locH of sprite 25 = the locH of sprite 25 + 8
    > ^^
    >
    > I hope that helps.
    >
    > Thanks,
    > Jerry
    >
    >
    > "Rowan Ferguson" <rowan@netimpact.com.au> wrote in message
    > news:br5sbs$q46$1@forums.macromedia.com...
    > > I'm trying to get a sprite to move horizontally when I hold down the
    > cursor
    > > key. Except it won't keep panning while I hold the key down. I don't
    know
    > > how to add a "repeat while the keydown" in here?
    > >
    > > I've got:
    > >
    > > on exitframe
    > > --right arrow
    > > if keyPressed(124) then
    > > set the locH of sprite 25 = the locH of sprite 5 + 8
    > > end if
    > > go the frame
    > > end
    > >
    > >
    >
    >

    Rowan Ferguson 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