Advanced Actions for Matchstick Puzzle (CP8)
Hi,
I’m creating a matchstick puzzle where you click to remove matches (images of matches).
The order is not important.
When user clicks matchstick image – the image is hidden and an outline of the image is displayed.
If user clicks the outline the matchstick image is displayed.
I have a counter “Matches removed” that displays the number of matchstick images that have been removed.
And a variable “Matchstick_visible” that indicates if the matchstick image is visible or not.
There is a “Submit” button onscreen to validate the puzzle.
Everything works fine but now I want to only allow user to remove a certain number of matches e.g. 4.
When the user tries to remove a 5th match a message will pop up telling them they have to replace a match before they can remove another match.
I don’t know how to add this functionality to the AA below.
Captivate 8.0.1.242, Non-Responsive, No scoring, No LMS, Windows.
AA for each match:
Decision 1 - Visible:
IF “Matchstick_visible” = 1
Hide matchstick image
Show matchstick outline image
Increment “matches removed” counter by 1
Decision 2 - Invisible:
IF Matchstick_visible = 0
Show matchstick image
Hide matchstick outline image
Decrement “matches removed” counter by 1
Decision 3 - Toggle:
IF 1 = 1
Toggle Matchstick_visible
Regards
Donal.
