Move sprite along path with arrow keys???

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

  1. #1

    Default Move sprite along path with arrow keys???

    Hi.

    I have an idea for a project, but have no idea how to create it in director. I want to move a sprite along a path, by using the up down left right arrow keys.
    The point of this being the sprite will be a car, driving along a road map. But i dont want the user to be able to drive it anywhere, it must stick to the roads on the map.

    If someone has done this, knows how to do it, or can guide me to a tutorial or sample movie, it would be much appreciated.

    Thankyou
    Rich


    I aint got a clue webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Trying to get Enter or up/down arrow keys to move row to row in asp.net datagrid
      Hi All, I've been trying to find a way to ape the action of the windows form enter key to an asp.net datagrid. That is, I would like to move to...
    2. arrow keys fail
      Hi Folks, I published the completed example of the 'magic trick' director example, but on my PC using the arrow keys (or mouse click) fails to...
    3. using arrow keys 2 control a sprite???
      i basically want to be able to control a sprite on the stage (in this case a car) by using the up, down, left and right keys! ive created 4...
    4. arrow keys datagrid
      Hi All, Bought the Flash MX datagrid component from Macromedia. Standard it does not handle the arrowkeys but they made an example on how to do...
    5. arrow keys in motif
      I can't seem to get the arrow keys on the number keys to work in motif -- NetBSD 96key pc keyboard(with the ctrl key where god intended it) ...
  3. #2

    Default Re: Move sprite along path with arrow keys???

    have a search at "game" section of [url]www.mediamacros.com[/url]

    --
    ----------------
    -- Ned
    ----------------------------------------
    Bien faire et laisser braire
    ----------------------------------------


    Ned Guest

  4. #3

    Default Re: Move sprite along path with arrow keys???

    if you want to move a sprite along a path then one way to do this would be to link it to a vector curve

    [url]http://www.geocities.com/hairybobby2000/mathsquadbezier.html[/url]

    this example shows how to link an object to a curve

    [url]http://www.geocities.com/hairybobby2000/vertex3spritefollow.html[/url]

    this example is a behavior to link a sprites movement to a vector shape in your cast.


    the second is probably the best. but they don't link the movement to keys - I'm afraid you'll have to adapt that one.


    HAIRYBOBBY - why didn't I choose a really cool name like the vulcanpimp

    [url]http://www.geocities.com/hairybobby2000[/url]

    new vector shape behaviors here

    [url]http://www.geocities.com/hairybobby2000/vertexhome.html[/url]
    hairybobby 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