Forum Discussion

StefanieKirs743's avatar
StefanieKirs743
Community Member
6 hours ago

Card Game Setup

I am working on a project that has an ungraded card game at the end. I want the game to be set up so that the user cannot click on the same card twice. The user has to "flip over" and view two cards in order to move on (show "Exit Course" layer).

I've been able to get all the variables correct (I think) but I've been playing around with the states and can't seem to get to a place where I can disable the card so the user can't click on it again.

What should I try next?

  • You have a trigger order/conditions issue. Your triggers are currently set such that Storyline is jumping to a slide, and THEN is supposed to change the state of a card to disabled -- but it can't, because it's not on that slide anymore. Storyline does triggers in order. 

    Change the trigger order so that setting the state of the card to disabled happens first. Then, change your triggers that jump to the scenario slides by taking out the condition you have on them. 

    I would also just have a number variable to card count (add 1 to CardCount when the user clicks 1 card, add 1 to CardCount when the user clicks 2 card, add 1 to CardCount when the user clicks 3 card), then show the "exit course" layer when the timeline starts if Card Count = 2.

    I made these edits in the attachment! I hope that helps!!