Example

Jonathan_Hill's avatar
Jonathan_Hill
Super Hero
10 months ago

BEAT THE MACHINES

Hello!

Like every object in Storyline, sliders have their very own object ID that can be accessed via the new Javascript API:

With Javascript, it's possible to take this object ID and manipulate the z-index of three overlapping sliders, so the slider that is being moved always passes in front of the other two.

Er, a bit like a 'cup and ball' game... 

Play BEAT THE MACHINES here!

There's a lot of other stuff going on in this demo, including a 'collision detection' system (also powered by Javascript) to ensure that no two cups occupy the same position.

If you'd like a more in-depth look behind the scenes, read my full write-up here.

4 Replies

  • Well, thanks a lot. It's now been 20 minutes and I'm definitely not getting any work done. Or better said, "Oh No!".  I found this addictive!  I like the cups-and-balls (potatoes) routine!  Very clever, Jonathan - thank you!

Getting Started with the E-Learning Challenges

Find practical answers to common questions about the E-Learning Challenges, a weekly event that helps you build skills, create your portfolio, and grow as an e-learning professional.