Forum Discussion

JohnBoisvert-18's avatar
JohnBoisvert-18
Community Member
3 months ago
Solved

Block Clicks After 2 Selections

I have a match game of Customer Streaming Preferences. Where the player has to match the "Preference" to its "Definition". The rule is you click on 2 tiles (that's two clicks) to reveal what is behind the tiles. When you match a preference to its definition, the tiles freeze and stay open. If they don't match, the tiles reset after 3 seconds. My issue is the player can click on more than 2 tiles. I need to restrict the player from clicking on more than 2 tiles before it resets. How can I do that? 

Review Link:  https://360.articulate.com/review/content/bcfbba8d-49f6-4ccf-a5c9-09f4ce09fe09/review

Working Storyline File:  

Thank you in advance for any assistance given.

John Boisvert
Charter Communications

5 Replies

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    Without seeing the .story file, here is one possible option:
    1. Use a True/False variable that is toggled when a tile is clicked.

    2. When this variable's value changes, add +1 to a numeric variable for each tile that is in Selected (or Visited) state.

    3. If this variable=2 then change the state of a transparent object from Hidden to Normal. This object covers all tiles

    4. When the 3sec timer expires, reset the numeric variable and set the state of the "cover" object back to Hidden.

    Hope that makes sense.

  • To implement this, do I make a "True False" Variable (2 Click Limit Variable attached) and then create a trigger for each tile (Adjust Varable Trigger attachment)? This is where I get confused. Not sure which triggers I need and to which tiles. I assume all the tiles. I've attached the Storyline File. Thank you in advance for your recommendations. Any further help will be deeply appreciated.

    John B

     

    • JohnBoisvert-18's avatar
      JohnBoisvert-18
      Community Member

      Michael,

      Works great! Thank you very much for your assistance. This will be a very useful variable for me going forward. Thanks again for your quick response and help.