Use “Move To” for Native Lectora Animation Effects
When you think games or animation, there’s a good chance you think of Flash. The ability to import Flash into Lectora in combination with passing variables between the two allows for very complex scenarios. But what if you want to access your course work on mobile devices? In that case, the “move to” function in Lectora can be surprisingly useful to build animations and interactions.
And far from being a one-time action, the movement can be based on a calculation for instance, to build a meter that would track along an X-axis. If we make a pointer object, the “move to” action can be set with a variable that is added to or subtracted from based on the number of correct or incorrect consecutive answers in a quiz.
The “Y” axis remains the same, but “X” will be the value of our calculated “X1” value: i.e. VAR(X1). Every correct answer can add 30, to our “X1” variable, and every incorrect will subtract 30. Then when the “move to” action is called, the pointer will adjust 30 pixels along the track. You can use a condition to set a maximum and minimum X value so the pointer does not leave the page!
There are several styles of movement effects for variety in the animation, such as “bounce” and “elastic.” Play around with them to see what works for your project.
There’s even the ability to set the X or Y value to a random number.
If you’ve ever created similar functionality in Lectora, tell us all about it in the comments below. You can also check out our collection of Lectora Templates in the eLearning Brothers Template Library.