Disable Hotspot?
Aug 22, 2013
Good morning!
I am creating a lottery ticket type of game to include in one of my projects. I currently have three areas that must be scratched off. I adapted an example Tom posted on another post that uses hotspots. Once the user moves the quarter across the hotspot 4 times it shows the image underneath. What I would like to do is limit the activity by only allowing the user to select one scratch area. If they do not select the correct scratch area it wont allow the user to scratch either of the other two areas. Any thoughts?
Here is a link to my example: woolwinewebdesign.com/scratch
13 Replies
you cnnot disable a hotspot, the best way of achieving this is to use a transparent shape which can e set to either disabled or hidden
Hi Mark,
There is a really great example in this thread from Dave Anderson with a scratch off that you can download the source file for.
Thanks for all of the comments. I discovered Dave's post the other day and adapted it. Phil I thought of the transparent shape after I posted this. The only issue I had was that I could only get the state of the transparent shape to change when I let go of the scratching coin. I could easily keep a hold of the coin and scratch the other two scratch areas. Thoughts?
I know it's been a while, but I stumbled across this post and figured I would add some insight in case people were still looking for a solution to disabling a hotspot. First, you CAN technically disable a hotspot.
Set up a variable for each of the hotspots you want to disable. You can do numbers or true/false. For this example, I'll do T/F.
Create your T/F variable and set it to default to false.
Next, start at the destination of the hotspot. Make a trigger that changes the T/F variable to true when the timeline of the new slide starts.
Now go back to your hotspot and create a trigger to go to 'destination' when you click it. Create a condition in this trigger. In this condition tell the trigger to only go to the destination of the variable (you created earlier) is false.
Now, you can click on the hotspot, it can take you to your destination (or whatever action you want) and then it will be disabled afterwards. The same principle can be applied to almost anything you are trying to create where you need to disable the hotspot.
Super simple. Hope that helps someone.
Thanks Jon for sharing that here - and if you have a second we'd love to see the .story file with this set up as I know that often helps other users in replicating an example like this.
Sorry, I just saw your request. Here is a VERY simple example of how to disable the hotspot.
The problem with your solution is that the hotspot isn't truly disabled; the cursor still changes when you hover the mouse over it.
Hey, nobody said they needed the cursor a certain way. It disables the hotspot, as in you can't click it anymore.
If you need the cursor to disappear, then I would do like Phil said, and create a shape or image that covers up the hotspot when necessary.
Hi Jon, I know it has been over 2 years however your solution works for me. Fixed a problem on a complex page where I didn't want to use transparent shapes as the page would be impossible to edit in the future. At least with hotspots you can see them.
Thanks Trevor
Happy to hear that Trevor, one of the many reasons we keep these older posts around.
Glad to hear it!
Hi Jon, another year has passed now - 3 years since you posted your solution, but just wanted to let you know that it's worked brilliantly for me. THANK YOU :)
This just solved an issue for me, too...thanks! Now if only Storyline would allow hotspots to have states....
This discussion is closed. You can start a new discussion or contact Articulate Support.