I have this Memory Game (Matching Pairs Game) that I created
(actually re-created). Inside this file consists of 8 different sets
of “card graphics” movie clips.
My main concern is trying to get the “Start New Game” button to
choose a random set of those card movie clips. It keeps selecting the
first set.
And inside the Library under the “Card Clipart” folder, you’ll notice
all my “Card Graphics” Movie files that should be played randomly one
at a time. >_<
Ok, try using this code:
anyNum = Math.round(Math.random() * 3)
_root.attachThis.attachMovie(“first” + anyNum, “second”, anyNum);
trace(anyNum);
basically what you have to do is name your movieclips in the linkage menu and make sure that they start with “first” and are directly followed by a number like first4 or first1, etc. Then I just created a empty movieclip called attachThis and load the randomly selected movieclip into it.
How do you display a text message every time a pair of cards are matched in the game? The text should be applied to each pair that’s matched but again I’m baffled.
Thanks,
MJ
Creating engaging and entertaining content for designers and developers since 1998.