Limit executions of relative motion path animation

May 26, 2015

I am trying to have the user trigger a relative motion path animation to scroll through a diagram (left right keys on keyboard). Is there a way to disable the left key for instance once the user reaches the left end of the diagram so it doesn't go off the page? Thanks.

3 Replies
Tim Shelton

I dont know how you have set up your file, so I cannot speak specifically for your case. However if I were to attempt something like this I'd do the following:

Left                               variable X                                 Right

1           2           3              [4]           5             6             7          

As you hit left it -1 and right +1 to variable X.

You have a graphic with 7 states each showing a progressive scroll. This way as the user clicks the image appears to move. 

Both triggers would need qualifying IF statements to say:

-1  IF X >= LeftLimit 

+1 IF X >= RightLimit

Hope this helps,

P.S.   Personally, I would suggest using a slider in storyline 2 to do this for you as it will change a variable between A-B and you can assign this to as many states you want and its a lot less trigger happy.



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