Crossword Puzzle Problem

Sep 23, 2022

Hello,

I have been attempting this for about 4 days now. I have made a simple crossword puzzle, the type where you don't have to type in each letter on the grid. This one has the answers in layers overlaying on the crossword grid. So if I click on the 1. Down green cube it opens up a text entry box, you put in the correct word "cellblock" and the box disappears because that is the correct answer. And if you are incorrect, a dialog box will tell you so and you can try again. The only problem is that the crossword grid doesn't show the layer with the answer if you are correct. I have attached the file. Can anyone give me a hand with this? 

 

Thanks,

Mike

10 Replies
Math Notermans

Im trying to fix it now...and do notice a mass amount of unused textvariables  ( up to TextEntry159 !!!) that clutter all and make it hard to debug. Guess those are remainders from an attempt making inputs per character. Nevertheless do make a habit of naming your variables... so not TextEntry35 but something meaningfull... inputEthanol or some like that. I suspect choosing a wrong variable causes it not to work.

In fact im 100% sure now that the mass amount of unused/unnamed variables contributed to the error, or rather make it hard to debug and thus cost you 4 days work. Do name all variables and input fields properly and mistakes are quick to find.

For example: Layer 4 and layer 1 both test for cellblock...whereas 4 should test for gross. So also name your SlideLayers recognizable.... thus not 1,2,3,4 but SL_cellblock, SL_gross etc...
And even Slidelayer 5 tests for cellblock...

Math Notermans

As i work quickest with Javascript additions in Storyline i changed your setup a bit and removed the layers with the correct words. Added those to the baselayer and hid them at start. When correct using a simple GSAP javascript to show them. Works perfectly.
https://360.articulate.com/review/content/0d18d4c1-b7fb-4a4c-90da-171a4050cab8/review

Adding the Storyline as is now. You direct can see that naming layers, inputfields and variables properly makes all this way easier. Fixed in less then 20 minutes.

Gonna try and get this done without Javascript now too. Using your layerbased setup.

Math Notermans

And when the errors are found ( mainly by properly naming everything ) the Javascript can easily be replaced by triggers. As seen here..
https://360.articulate.com/review/content/fbbd59c1-a403-41ab-b797-6a87b389db9b/review

However you notice that the images/words donot fit as precisely as in the Javascript version. I plainly copied and pasted the elements from the baselayer to the slidelayers, so this is a internal Storyline issue that causes the position of Slidelayers to be somewhat off. Thus making it hard to get precise results...as you can see in the Review sample above.

Have fun with it...

Michael Williams

Thanks so much Matt. I appreciate. 

Thank you Sarah as well. I am not an expert with Storyline yet, but loving it. 

I may have one final question about the crossword. After the crossword is completed can I insert a Congrats! You've Completed the Crossword? 

 

Thanks so much folks,

 

Mike

Sarah Hodge

Hey Michael! I really like the idea of showing a COMPLETE layer so the learner gets the satisfaction that they completed the entire crossword. To show that layer, you need to add some more variables and triggers to your project. I went ahead and made the changes for you in the attached file. But here's a breakdown so you can see how I made it work:

  • I created a Complete layer with some text
  • I added a variable for each correct layer (c1visited, c2visited, c3 visited, c4 visited, c5 visited)
    • I set the Default value to FALSE for each one
  • On each correct layer, I added a trigger to change their matching variable to TRUE when the timeline starts on that layer. 
  • On the base layer, I created 5 new triggers to show the CORRECT layer when:
    • c1visited changes IF c2, c3, c4, c5 are also TRUE. 
    • c2visited changes IF c1, c3, c4, c5 are also TRUE
    • c3visited changes IF c1, c2, c4, c5 are also TRUE
    • and so on so no matter which order they complete the puzzle, it will show the complete layer. 

I hope that helps!