19 Replies
Jerson  Campos

My suggestions is to add two variables.  Each click on a match would add to variable that tracks how many matches where removed (totalMatches).  And the correct match removed will add to another variable for correct matches removed (correctMatch).  So when users remove a match, if it is not right it adds +1 to %totalMatches%. if it is a correct match it will add +1 to %totalmatches% AND %correctMatch%. This way if users get some correct and some incorrect picks, you can stop them when%totalMatches% reaches 6. and if %totalMatches% equals %correctMatch% (should be 6)  than display correct feedback,  if not display incorrect feedback.  

Let me know if you need help with this.

Will Hampton

Jerson campos said:

My suggestions is to add two variables.  Each click on a match would add to variable that tracks how many matches where removed (totalMatches).  And the correct match removed will add to another variable for correct matches removed (correctMatch).  So when users remove a match, if it is not right it adds +1 to %totalMatches%. if it is a correct match it will add +1 to %totalmatches% AND %correctMatch%. This way if users get some correct and some incorrect picks, you can stop them when%totalMatches% reaches 6. and if %totalMatches% equals %correctMatch% (should be 6)  than display correct feedback,  if not display incorrect feedback.  


I'd like to see a sample if you have something lying around. I find it's easy to add to the totalMatch but what I can't get is the subtract when the user re-clicks the match. I'd like the option to return the selected match back to the Normal state and subtract the 1pt from the totalMatch.

The toggle variable option appears to only work with True/False variables.

Will Hampton

That would be great, Jerson. I'm stumped on this one. The only way I can see accomplishing this is to add a variable for each object. and set it to 1 or 0. Anyway, thanks for taking a stab at it.

Sanjib - you're doing some great work. Any chance you would share a couple of your source files so the community can dissect them?

Montse

Hey everyone! I just updated the file to include:

  • Congratulations layer that's shown when the user clicks the correct matches
  • Error layer that's shown when the user clicks six matches
  • Solution layer
  • Variables that track clicks to prevent the user from clicking more than six matches

Challenge game #1

I had to use a lot of triggers (too many IMO). I would appreciate if you could take a look at it and see if it's working correctly.

Jerson  Campos

Awesome.  It looks like you got it right.  I was working on it and instead of numbers I was placing small matchsticks that would appear on the top left corner as a counter.

Yes this would be alot of triggers, but this is what seperates plain "click next" courses to really great courses. That extra effort.