Example
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...
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
- NedimCommunity Member
That's awesome, Jonathan_Hill! I hereby pronounce you the master of sliders!
- EricStavney-815Community Member
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!
- Jonathan_HillSuper Hero
Thanks Eric! Did you manage to Beat The Machines?
- EricStavney-815Community Member
Yes! But only twice. Need more practice.