Forum Discussion
Using Fill in the Blank Questions that will accumulate "points"
Hello,
I'm building a scavenger hunt. I want the Learner to accumulate "tokens" in a treasure chest for correct answers. In the "Mission" scene of the file, there is a home screen that has a treasure chest with a variable for the Score within it.
The issue is this: I can get it to work if I am just doing a "select one" type of question by adding an "add 5 to score when user clicks shape A trigger" BUT, I cannot figure out how to add those points for a correct fill in the blank (text entry) type question. I've tried to add the five points in the correct layer when the user clicks "continue" but that won't work in either example.
Any ideas?
Thanks
- JudyNolletSuper Hero
Adding the points when the user clicks the Continue button in the Correct layer should work. Best guess: When you added the "add 5" trigger, it would have defaulted to be the last trigger for that button. That means it would come after the trigger that jumps to the next slide. And that means it will never run. (Triggers run in order. But a trigger can't run if the program has already left the slide.)
- If that's the case, just move the "add 5" trigger so it appears before the "jump to" trigger.
- If that's not the case, I suggest you upload a copy of your file. That'll help someone take the guesswork out of troubleshooting. (If it's got proprietary content, just upload a copy with the text changed to ipsum lorem or some other bogus content.)
- PamelaReese-51cCommunity Member
Thank you for your reply. I actually just found a fix by borrowing a trigger I found in the recently posted Battleship game.
I just had to add 5 to the points variable when the timeline began on the correct layer. It worked perfectly.
Thanks!
- MaddieSchroe307Community Member
Any chance you would be willing to upload the storyline (or screenshot the triggers)? Would help me with a project I'm on, thank you!
- PamelaReese-51cCommunity Member
Hello. I have added some screen shots. You do need a variable for an accumulated score to go somewhere. You can see that on the screenshot with the treasure chest. The rest of the scoring is done on the "correct" layer." You can also minus points on the "incorrect" layer if you wish. I didn't do that here. Hope this helps.
Hi, Maddie!
Just a quick note that you're welcome to contact Pamela directly through their profile by clicking on their name and selecting Contact Me.