A new version of this game, taking advantage of more recent features and published to HTML5, can be found in this blog:
Situations - Slides - Events
- Choice of a challenge: either Europe or North America will have consequences later on, so I'll need a variable
- Clicking a first card, content of card will be showed, has to be remembered (by user and by the game), so I'll need a variable
- Clicking second card, content will be showed and remembered (variable)
Game has to compare the content of both cards (duo): correct/incorrect will have different consequences/branching
- correct: cards are removed (image visible based on choice), game has to remember this 'duo' was correct, next action of user
- incorrect: cards are again turned, next action of user
User can choose to guess: answer can be correct/incorrect
- correct: congratulations, game ended
- incorrect: next action of user
Intro: is the welcome screen, where the user can choose between North America and Europe (for the hidden image) using two buttons. This slide is reused, after a wrong guess of the user (situation 5) he is navigated again to this slide (hence two text captions).
Game: is the most complex slide, with tons of objects, and most objects are timed 'For rest of project' which leaves them with one unique ID; the click boxes on the 'cards' are triggering advanced actions that will show the cards, and there is a Guess button that navigates to slide 4. This slide will be explained more in detail later on.
Second: to have more events for triggering actions I used this second Game slide that will appear after the user has chosen two cards to reveal and with the timing 'For rest of project' it has the same game objects; the user will be able to read the Success/Failure captions, and proceed with a Next button which returns him to the second slide Game.
Guess: when the user has clicked the Guess button on slide 2, this slide is presented; it has the same game objects as on the two previous slides, and a Text Entry Box that will be validated. If the answer is correct, navigation is to the last slide, if it is wrong, navigation is to slide 1 Intro.
- End: shows the image totally even if not all cards have been removed, a relevant text caption depending on the image and a Text animation; this slide will only be reached when the user has guessed the answer correctly.
- Enter of first slide Intro to show/hide buttons and Text Captions: advanced action EnterIntro
- Buttons on slide Intro (Europe/North America): advanced actions Bt_EU Bt_NA
- Button 'Next' on slide Intro (only visible on second visit) triggers simple navigation to next slide
- Enter of second slide Game: advanced action EnterGame
- Click boxes (12) on slide Game: advanced actions CB_11, CB_12.... CB_34 (location in label: 34 = 3rd line, 4th position)
- Button 'Guess' on slide Game triggers a simple navigation action to slide 4
- Enter of third slide Second: advanced action CheckSecond
- Button 'Next' on slide Second is set to Continue, because exceptionally I used the next event (Exit) and have to be sure the playhead reaches the last frame
- Exit of third slide Second: advanced action ExitSecond
- TEB on fourth slide Guess navigates to slide 5 End if validation is correct, to slide 1 Intro if it is incorrect
- Enter of last slide End: advanced action EnterEnd
- v_void: empty variable to check if variable v_one is empty
- v_choice: to store the choice of Europe (E) or North-America (A)
- v_current: very important variable to save time when editing, it will store the content of the last chosen card (AE, DW, Fl, FW, ID or PR)
- v_one: stores the choice of the card if it is empty (first card of duo) by using the variable v_current
- v_two: stores the choice of the card if v_one is not empty (second card of duo) by using the variable v_current
- v_AE, v_DW, v_Fl, v_FW, v_ID, v_PR will get the value=1 if that duo was discovered
- v_counter will increment by 1 with each new discovered duo; I didn't use it in this example, but could be used to have a different score at success depending on the number of duos that had been discovered before guessing the image
- v_first: gets the value=1 after the first slide has been visited, because that slide is reused and has to show different objects on the subsequent visits.
- the two images to be discovered, one for North America, one for Europe; this could be extended to more choices or even more images from those two continents; images are set to display for 'Rest of Project', so when discovered (partially) this will show up in slides Second, Guess; on slide End they will be uncovered totally
for each card you'll find a trio of objects (highlighted for first card on the first row), for this example:
- PR1_Fr image of the content of the card (here the mnemonic for Premiere), needs to be the bottom one; I choose this label because it tells me about the content (first card with Premiere, Fr); this image is also timed for Rest of Project
- PR1_Bk the 'back' of the card that is visible when the game starts (used a gradient for those, but you can of course use whatever image you want), timed for Rest of Project
- CB_PR_11 click box over the card, that will trigger the advanced action CB_11; I used this longer label to be able both to identify the content and the place to make it easier to attach the advanced actions (and edit the duplicates)
- Text Caption for the button Guess ("If you want to guess....")
- Button Guess
- Button Next, left to the default action 'Continue'
- Text Captions Correct/Incorrect: the proper caption will be visible based on the action On Enter for this slide; when exiting the slide both Text Captions will be hidden and user is returned to the previous slide Game
Anyway it was fun to try to create this simple game, it allowed me again to refer to the workflow and the hide/show functionalities that I explained in previous posts. Your comments are, as usual, very welcome.
Yesterday eLearnDesigner posted a comment to tell me that she discovered a bug in the game: when a user clicks twice on the same card, it will be considered as a success and both parts of the image will be revealed. Thanks a lot!
- CB11...CB24 here I added a statement to disable the click box that had just be clicked.
- EnterGame both click boxes for the pair of cards were enabled again if there was no match.