Ask a Question related to Macromedia Director Lingo, Design and Development.
-
loo #1
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
-
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... -
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... -
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... -
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,... -
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... -
Rob Dillon #2
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
-
loo #3
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
-
Rob Dillon #4
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
-
loo #5
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
-
Rob Dillon #6
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



Reply With Quote

