Forum Discussion
Prevent user from clicking on a hotspot twice
Hello! Is it possible to prevent a user from clicking on the same hotspot twice?
I am creating a "Where's Waldo" type game with hotspots. Once a hotspot is clicked, I have a feedback layer appear that "pauses" the game/base layer until a Continue button is clicked and the feedback layer is hidden. I will be using variables to add "points" as well.
To keep users from gaining the same points or having to read through the same feedback more than once, I'd like to disable the hotspot once clicked. I haven't found an obvious trigger for doing so.
Any ideas, workarounds?
Thank you!
- WaltHamiltonSuper Hero
Don't use the built-in hotspots. Create your own, because they can have states. When they are clicked, you can set their state to hidden, and they can't be clicked. Make them without a border, and set their transparency to 96 - 98%.
- LauraGough-cae2Community Member
Would this be just a general shape? And is it possible to make it complete transparent and still be clickable?
- WaltHamiltonSuper Hero
It would be any shape the program can create. For it to be clickable, it must have a fill. For it to be invisible, it must have a high transparency. Fortunately, both of these are compatible. The only caveat is that some people have recently found that you can't click if it is 100% transparent.
- ArminBaghaei-64Community Member
Hey guys. That's an excellent question. I have the same issue. However, I could not get the idea Walt mentioned here. Walt, could you please assist me in how to do this?