This fun, 8-bit style true/false quiz uses JavaScript to trigger events and actions based on the position of the scrolling panel, making it work a bit like a slider.
If you're curious to learn more about the code, check out this thread.
Hi Miguel, yes it's fully customisable and based on a Freeform Quiz slide. The JavaScript would also support 3 answers if you wanted to adapt it and take it beyond a true/false quiz.
Hi Jonathan,
If we publish it as a standalone scene, this game is working absolutely fine. But when we add this game to one of the scenes and publish the entire course the game is not working as intended.
Hi Chetana. I'm sorry, but I don't quite follow? The game contains several pieces of JavaScript and if you're missing the script that re-inserts the jQuery funtion into the published .story file, the JavaScript that interprets the slider movement won't work on its own. I'd need to know a lot more about where/how you are publishing it to comment further. In the process of transplanting my demo into another course you may have missed or inadvertently deleted some of the essential bits of code.
I've just tested the download and it works as intended, so I can only assume it's not playing nicely with the environment you have placed it in or you have made some changes to it?
I totally agree. The game is working well in the standalone scene but when we add multiple scenes to the same story, the game is not working as expected.
After publishing,if you scroll down/up the TRUE or FALSE will not change it remains same.
It very much depends then how you have added the additional 'scenes'. Simply duplicating the slides is the best way. I recommend double-checking that the JavaScript and variables that appear in the original slides have copied over. In particular, the coin changes state (TRUE/FALSE) based on the behaviour of 'num' and 'ended' variables. It sounds like you are missing some of these variables and/or the JavaScript that influences these in your new slides.
I have just duplicated Question 3 to create a four question version without any issue.
What version of Storyline are you running and is it up to date?
Unfortunately I can't explain this Chetana, sorry. I can't replicate the error you describe and I have been able to add as many as 10 bridge crossings to the demo file without any issue.
Are you using an older browser such as Internet Explorer to view your published file or is your environment is blocking JavaScript? I'm all out of suggestions I am afraid. Without knowing much more about what you are attempting to do with my demo, what changes you have made to it and where you're hosting it, I can't help any further.
For anyone interested, here's a sneak peek at my demo for this week's 'accordion challenge', which reuses some of the assets from this demo...
https://jonathan-hill.s3.eu-west-2.amazonaws.com/elhc403/story.html
18 Comments