Moving with Variables

On the forum i noticed a thread about moving a button on a click with variables. Although this got a solution quite quickly, i wanted to make a solution of my own. To ensure reusability i used a javascript that gets the position of the cross-markers in Lectora and sends these back to Lectora to be used as variables. To show its flexibility and reusability i added 2 buttons to make the position of the cross-markers random and/or to make the button jump to one of them randomly.

Preview image

Tags:

Comments

  1. Profile photo of Nick Williams
    Nick Williams

    Hi Math, awesome example.
    I’ve often seen the Move to variable option in Lectora, but have never used it as I’ve not known how to best utilise it.

    Could you give an example of when you would use this feature in your demonstration?

  2. Profile photo of Math Notermans
    Math Notermans Post author

    Hi Nick,
    Any animation that needs to be dynamic. For example a gamecharacter that needs to react to a users input. Or a dial on a gauge that reacts to a choice of a user. I made courses for the automotive industry in which gauges needed to show the value a user picked for an exercise.
    And i can think of many many more..
    Regards,
    Math

Your email address will not be published. Required fields are marked *