Mulitple clicks using variables

errington84
errington84 Community Member Posts: 2
Hi Everyone,

 

I'm just creating a new module and I want to create the ability to click an object multiple times using variables, really struggling to see how without copying the object and overlaying then show and hide each one as it is clicked.

Thank you in advance.

Ben

Comments

  • wendymiller
    wendymiller Community Member Posts: 244
    Hi Ben,

    I'm not 100% sure, but it sounds to me like you want to have a different response based on the number of times a button has been clicked. If that is the case, then I've put together a little example of how you can do that. The attached title contains a page with one button on it. The first action attached to the button adds 1 to a user-defined variable (_buttonClicks). And the rest of the actions do something based on the value of _buttonClicks. Is this what you're looking for?

    The attached title was built in Lectora v12. If you need a different format, let me know.