Forum Discussion
Memory Game Help
Hi,
I created a memory game where when the user gets a match, a question pops up.
My issue is that I cannot seem to get the variable correct for only having the user pick two card at a time.
When there is an incorrect match, there is a layer that should appear where it resets the game board and flips the cards back over.
I used this example from elearning heroes to help create my game board.
What am I missing? Is it the order of the counter variable or do I have something else set up incorrectly? I'd appreciate another set of eyes.
3 Replies
- NedimCommunity Member
Hi LizDeal
I didn’t have time to examine every single layer and trigger, as there are just too many of them both for what I would do differently and for something that could be achieved with fewer layers and triggers.So, I’m attaching my version of this interaction, which is much simpler and more efficient. In short:
- I removed redundant states such as Flipped, Image, and Match, and consolidated them into the default Selected and Disabled states, which now serve the purpose of the original Match state.
- I created a cardsFlipped variable to track when two cards are revealed. If the cards do not match, the variable resets to 0; if they do match, the corresponding question layer is shown. After the question is answered, the interaction returns to the selection layer so the player can continue matching cards. Technically, the cardsFlipped variable is controlled on the base layer, while the redirection decisions (whether a match occurred or not) are handled on the Sorter layer. This ensures that different functionalities are managed separately on their own layers. I did not modify any of your triggers on the question layers. The amount of time the two flipped cards remain visible on the base layer before being directed to the Sorter layer can be adjusted by shortening or lengthening the timeline.
- Additional messages, notifications, or similar elements can easily be built on top of this structure to further enhance the user experience.
I hope you don’t mind that I modified your original logic and interaction structure. It was just too time-consuming for me to track down what was causing issues in your version. As with anything in Storyline, there are usually many ways to accomplish the same outcome. If you have specific questions about the logic I used in my version, please don’t hesitate to ask.
I am attaching the original version of this game that I developed a few years ago for your reference, along with the modified version of your file for comparison and review. Hi LizDeal! I am wondering if these examples might be helpful to you:
Flash Cards V2 - Details on how it works with SL file for you to explore! | Articulate - Community
Nedim - I saw your comment on one of these. Wondering if you have any insight for Liz's version.
Related Content
- 11 months ago
- 11 months ago
- 3 months agoDeleted user