Skip to main content
Participant
September 13, 2016
Question

Show or Hide a Shape based on where you click on the slide

  • September 13, 2016
  • 1 reply
  • 369 views

I would like to have a smart shape show on the screen and then go away, if a user does not click on the button I specified but wants to click elsewhere on the slide where there is no interactive content, I would like the smart shape to show again and then go away after they stop clicking.  So if they click 5 times in any area other than the box where they need to click on then that smart shape pops up (similar to the hint feature but using a smart shape).  Is this possible?  If so, what steps should I take to make that happen.

This topic has been closed for replies.

1 reply

RodWard
Community Expert
Community Expert
September 14, 2016

Yes it's possible (though it's not something I've ever had to actually do for a client's course).

You can place a Click Box on a layer UNDERNEATH the button so that clicking anywhere other than the button will be detected by the Click Box's hit area.

You will need a User Variable that tracks the number of clicks OUTSIDE the button, and you will use this variable in a Conditional Action that is executed by the user clicking on the Click Box.  The first Decision Block of the Conditional Action will need a 'dummy condition' (such as IF 1 is equal to 1) so that its actions always get executed. It's action will be to increment the value of the User Variable.

The second Decision Block in the Conditional Action will check the current value of the User Variable and IF it is equal to 5 then one of the actions will be to SHOW the Button and another action will be to Assign the User Variable's value back to 0 again.  The ELSE action for this decision block will be to HIDE the Button.

This means that if the Button starts out on the slide as visible to the user, as soon as they click OUTSIDE the button, the action executed by the Click Box will immediately HIDE the button and start incrementing the counter.  Up until the fifth click on the Click Box nothing else happens other than incrementing the User Variable.  But then when the User Variable's value hits 5 the button gets SHOWN again and the cycle repeats.

Participant
September 15, 2016

Thank you - are there examples of how I need to create the User Variable that will track the number of clicks outside the button?

RodWard
Community Expert
Community Expert
September 16, 2016

Project menu > Variables > Add New