JavaScript Help

May 03, 2018

I've been using Captivate for years now, and often utilize the JS capability to make courses more interactive and engaging. My latest client has specified the use of Storyline for their project, and as there are going to be 'game' elements used, I need some help.

In Captivate it's fairly easy to identify and object's ID within the course, typically it will be 're-ObjectNamec' which you can then use to manipulate it in any way you need. I'm unable to find out how to do this in Storyline, and given that it seems to convert all objects into SVGs, I can assume the process is not as straight forward.

In essence, I need to have a movable object on screen, where the learner can manipulate it's positioning using the UP, DOWN, LEFT and RIGHT keys. Any advice on how best to do this?

1 Reply
OWEN HOLT

You wouldn't need to use JavaScript for this.  You can use motion paths and triggers.  Here are 2 examples of motion paths to move objects left and right and up and down for you to explore. While the mechanism to trigger the movement is something other than a key press, a key press can be used as the triggering event.

https://community.articulate.com/download/storyline-3-claw-machine-game

https://community.articulate.com/download/storyline-sliding-puzzle-game 

This discussion is closed. You can start a new discussion or contact Articulate Support.