Professional Web Applications Themes

Setting location of sprite based on previous marker - Macromedia Director Basics

Hi, I want to set the location of a sprite based on the marker that the user jumped from. Let me explain. The user is at "marker1" They hit a "menu" button and jump to marker "Menu" There they can hit a "map" button and jump to a map. I want the map to display a "you are here" symbol that corresponds to "marker1" So if they are at marker1, the sprite is in the marker 1 spot. If they are at marker2, the sprite is in the marker2 spot. thanks in advance -WS>...

  1. #1

    Default Setting location of sprite based on previous marker

    Hi,

    I want to set the location of a sprite based on the marker that the user jumped from. Let me explain. The user is at "marker1" They hit a "menu" button and jump to marker "Menu" There they can hit a "map" button and jump to a map. I want the map to display a "you are here" symbol that corresponds to "marker1" So if they are at marker1, the sprite is in the marker 1 spot. If they are at marker2, the sprite is in the marker2 spot.

    thanks in advance

    -WS>


    WhiteSaber webforumsuser@macromedia.com Guest

  2. #2

    Default Re: Setting location of sprite based on previous marker

    you wil have to record the marker before leaving it with menu command.

    you can get the frame number of the first marker at or to the left of
    the current frame with;

    marker


    store that in a global variable, perhaps called lastmarker


    you can get the name of a given marker by name with

    getaprop(the markerList, lastmarker)

    using a non-marker frame will yield a void
    JB Guest

Similar Threads

  1. How to Set Drop-Down Value Based on Previous Selection
    By Chris Keane in forum Macromedia ColdFusion
    Replies: 0
    Last Post: March 9th, 06:38 PM
  2. Save location of a sprite
    By stiller3103 webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 3
    Last Post: December 24th, 02:57 PM
  3. Replies: 3
    Last Post: September 17th, 09:56 PM
  4. Setting a dragged sprite back to start pos after timeout
    By Nubber webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 0
    Last Post: August 22nd, 12:24 AM
  5. Setting a checkbox based on a value in a DB
    By C in forum ASP.NET General
    Replies: 2
    Last Post: August 8th, 07:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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