Random frame selection?

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

  1. #1

    Default Random frame selection?

    I have just started using Director, so this is probably a simple/stupid question.

    Anyway, I am doing a short story in which the user can interact at some points, and choose what will happen next from a few alternatives.

    At one point, I want the next part to be chosen, randomly, from two or three different alternatives. I have created the story up to that part, and the two possible continuations which also have been marked/named. But I cant figure out how I should do to make the random part. It could be done either through the user clicking on a button, or preferably by itself.


    Any help is appreciated!


    Kibson webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Random selection
      Hi You can use "select distinct names from table_name order by rand() limit 3". Hope this helps and let me know. cheers Binay -----...
    2. Random frame jump
      Hi I'd like the user to be able to click on a button and be taken to a random frame. There is a similar question on this notice board, but I can't...
    3. Random Button Selection
      I am creating a CDROM presentation using Director MX (Mac/PC delivery). This presentation has a couple of sections that have a number of buttons that...
    4. go to random frame?
      Something like this should work: Place this script in the button member script on mouseup aFrameList = -- Put all of your...
    5. Disconected Recordset & Random Selection
      Hello All, How would I go about using a disconnect recordset and select (x) records from it, x being the number of records to be selected. ...
  3. #2

    Default Re: Random frame selection?

    Here's the code to go to one of a list of marker names


    on randonEnd
    optionalMarkers = ["happyEnd", SadEnd", "CliffHanger"]
    go to optionalMarkers[random( count(optionalMarkers))]
    end
    JB 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