Matching game....help!

Jan 31, 2017

Hello everyone.  I am working on a "simple" matching game interaction.  I have 4 sets of two.  I am able to get a set to "match" the way that I want it to, but I don't know how to get the "cards" to reset if the user makes a wrong selection. Additionally, how can I limit them to just choosing two?  I have found a couple of examples in the community, but frankly found them a little more complicated than I was hoping for.  I'm sure it is going to come down adding a variable of some type.  I have included the file.  Thanks for your awesome help!

Terry

5 Replies
Daniel Sposato (Philly)

I made a color matching game using just SL2. It's not easy to make! SL2 lacks programming loops that simplify the amount of triggers needed. You would be better off using Javascript to make this work as it would require a lot less coding.

If you just create it in SL2, I would suggest using your slide layers like functions to break up your triggers so there's not a bazillion on your base layer. To do that you just basically put any triggers related to a task on 1 slide layer. Then another task would be a separate slide layer, and so on.

For example: Set up a slide layer called "check for match". Every time the 2nd item is flipped to look for a match make a trigger that shows that slide layer. Then have any triggers that check for a match be on that slide layer.

Here's an image of my slide layers breaking up the triggers for my memory game.

I also used colored check marks to help identify if the slide layer was being shown at the correct time.

It's a lot of triggers! But it ended up working really well!

This discussion is closed. You can start a new discussion or contact Articulate Support.