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

  1. #1

    Default scoring??


    i have a sprite that has a possibility of displaying 6 different cast
    members depending on what button has been pressed.

    Each member (image) has a set of predefined hotspots - IMG1 has 7, IMG2 has
    5, IMG3 has 3 and so on...

    When each hotspot is pressed some relevant text appears and a sound is
    played.

    I also have a scoring system that needs to be activated when each hotspot is
    clicked - this shows the user how many hotspots there are to find and how
    many hotspots have been found.

    basically my scoring system needs to know what the member of sprite 8 is
    before it can determine the correct scores to start with and then add and
    decrease when each individual hotspot is pressed... & of course the scores
    have to be reset once a new image is displayed. (and i can't use repeat
    loops because of interference with other media on the stage)

    sorry if this is a bit long winded but i'm trying to get the logic in place!

    could anyone give me a few pointers in the right direction as i'm really
    unsure how to go about setting this up....

    i think i have to define (in a movie script?) ....

    pWhichImage = the memberNum of sprite 8
    pScoretoFind = 7 (- when hotspot pressed)
    pScoreFound = 0 (+ when hotspot pressed)

    or should i use globals?

    any help would be much appreciated, thanks.


    loo Guest

  2. Similar Questions and Discussions

    1. Access to Captivate 3 Scoring data in Flash CS3 -how to ...
      Hi, Well I found a way of getting the scoring data from Captivate to Flash. So this part I can help you with. But I guess if you want to save...
    2. Access to Captivate 3 Scoring data in Flash CS3 - how to...
      Hi, I'm currently working on a project where the customer wants a shell/interface made in Flash (AS2), where 4 Captivate excercises and one final...
    3. Course Builder scoring
      I'm a newbie to Dreamweaver, seen the Macromedia tutorial on scoring Coursebuilder pages on multiple pages which i want to do but this seems quite...
    4. Golf Scoring Code/Templates
      Does anyone know where I can find code that will help me build a golf scoring and tracking site? I would like to track golf scores by team,...
    5. Scoring - Help please, complicated score counter
      I have a graphic on screen with various buttons that the user needs to identify and click on (spotting safety hazards). They need to score 1 point...
  3. #2

    Default Re: scoring??

    To paraphrase: The user presses 1 of 6 buttons, an image appears. Each
    of these images has a specific number of hotspots. You are displaying
    the total number of hotspots available, and the current number that
    have been found.

    Are the hotspots part of the displayed image? or are they in a
    different location on the stage?

    You could place most of the code in a behavior that you attach to the
    sprite that shows the image. Each of the buttons tells the image sprite
    to display a unique member. That's simple enough. Also have that button
    send a call to the image sprite to "reset" it. This reset would change
    the member to be displayed and change the text or field sprites that
    show the hot spot information.

    I would use a list of the number of hot spots for each image. You can
    keep this list in the image behavior.

    I'm unsure how these hot spot sprites work, but you will want to set
    their interaction to only allow one hit. You don't want the user to be
    able to hit one hot spot sprite 7 times, you want the user to have to
    hit each hot spot once.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  4. #3

    Default Re: scoring??

    Hi rob

    Thanks so much for taking the time to help me out - and good point about
    setting the hotspots to only allow one hit - hadn't thought of that, duh!

    Could u possibly give any more suggestions as to how to go about setting up
    the scoring process?

    And yes, the hotspots are already part of the image....

    Thanks again

    ---------------------------

    "Rob Dillon" <rob@ddg-designs.com> wrote in message
    news:301020030923357945%rob@ddg-designs.com...
    > To paraphrase: The user presses 1 of 6 buttons, an image appears. Each
    > of these images has a specific number of hotspots. You are displaying
    > the total number of hotspots available, and the current number that
    > have been found.
    >
    > Are the hotspots part of the displayed image? or are they in a
    > different location on the stage?
    >
    > You could place most of the code in a behavior that you attach to the
    > sprite that shows the image. Each of the buttons tells the image sprite
    > to display a unique member. That's simple enough. Also have that button
    > send a call to the image sprite to "reset" it. This reset would change
    > the member to be displayed and change the text or field sprites that
    > show the hot spot information.
    >
    > I would use a list of the number of hot spots for each image. You can
    > keep this list in the image behavior.
    >
    > I'm unsure how these hot spot sprites work, but you will want to set
    > their interaction to only allow one hit. You don't want the user to be
    > able to hit one hot spot sprite 7 times, you want the user to have to
    > hit each hot spot once.
    >
    > --
    > Rob
    > _______
    > Rob Dillon
    > Team Macromedia
    > [url]http://www.ddg-designs.com[/url]
    > 412-243-9119
    >
    > [url]http://www.macromedia.com/software/trial/[/url]

    loo Guest

  5. #4

    Default Re: scoring??

    How do these hot spots work? Is each hot spot a separate sprite?

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  6. #5

    Default Re: scoring??

    the image is an 'ipix' image (bit like a QTVR) that has pre-defined
    hotspots.

    the parameters for these hotspots are then called from within a movie
    script.

    hope that makes sense?

    thanks again!



    "Rob Dillon" <rob@ddg-designs.com> wrote in message
    news:311020030848388814%rob@ddg-designs.com...
    > How do these hot spots work? Is each hot spot a separate sprite?
    >
    > --
    > Rob
    > _______
    > Rob Dillon
    > Team Macromedia
    > [url]http://www.ddg-designs.com[/url]
    > 412-243-9119
    >
    > [url]http://www.macromedia.com/software/trial/[/url]

    loo Guest

  7. #6

    Default Re: scoring??

    I would have to see some sample code to understand how the mouse event,
    the click, is read by that movie script. Or is there also a behavior
    attached to the sprite itself?

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon 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