Freebie: Storyline 2/Javascript Board Game
Jun 12, 2017
Hi All,
I've created a board game in Storyline 2 using Javascript. Attached is the Storyline file for you to use. When you click Roll, Javascript is executed to generate random numbers, which simulates the dice rolling. I've got two SL variables assigned to the outcome of each dice (random number). The game piece also moves around the board as you roll the dice.
As you will see, this is not a complete game yet, as nothing happens when the game piece moves. However, I plan to program this to jump to a new slide to answer a question on a certain topic. Feel free to make your own spin on this and share your final game. I would love to see how others use this.
Feel free to leave feedback on ideas or ways I could make this better.
9 Replies
This is super cool, Nate! There are tons of different ways people could use this. I went ahead and published it so people can see it in action before they download it. Here's the link. :)
Thanks, Allison!
This is superb. As you have pointed out the possibilities to build on this to create unique games are limitless. Thank you very much for sharing!
This is great - thanks for sharing :)
That is cool! I like that you can make a really entertaining game with a relatively compact architecture in Storyline.
I noticed that the first "Change state of Button 2 to One" should be "when the timeline ends", because otherwise the player can land on the first spot (One).
And upon testing this, I found out that it's possible to cheat by clicking the "roll" button immediately after the dices have landed but before the marker have moved... But noone's cheating, right!? ;) I think you can fix it by just shortening the timeline.
It shows javascript support is not available while previewing. What should i do?
Publish and upload to web or LMS or you could try the publish to CD option.
awesome work
This is exactly what I have been trying to build thank you for sharing! Just wondering why did you use a button for the marker? Is it so you could change the state? I thought you could do that on any icon so just curious!
Thanks!
This discussion is closed. You can start a new discussion or contact Articulate Support.