UPDATE: since the January Articulate Storyline update, this example won’t work if you’re trying to replicate it for various reasons. Many of you asked how the character moves to a random position and all… It can be done in the new version of Storyline but it would take some time to redo the code. You can still play with this though and explore it as a concept.

Do you know the correct result of the following mathematical expressions?

-1^4+4
-1*(-4+6)
-6^-1
5%4

If you do, here’s a challenge for you! Check out Calcy, the gameful math challenge where you roll the dice to create mathematical expressions that can move Calcy on the board.

This interactive challenge is using JavaScript (with jQuery), a math library to calculate the numbers and a random number generator.

More about Calcy on Project 99 where we collect 99 practical examples of JavaScript for Storyline:
https://www.rabbitoreg.com/examples/p99/#/lessons/cbc4yvAA2gSbF2zQUoL_26HbatjVdcWd

Leave a Reply

Your email address will not be published. Required fields are marked *