Plugin to remove hotspots tourwide

  • I love this forum, there's so many creative people helping each other.

    I recently created a mute/resume button plugin when clicked mutes the sound, and then clicked again resumes. (Pretty straight forward huh?)

    My next task is another button similar to the previous, only instead of removing/playing the sound, I want it to hide/show all the hotspots I've created. (I've created multiple new hotspots because the textfield plugin isn't 100% trustworthy on iOS devices.) This button will be always showing, just like the music mute button, but it will hide all of the hotspots in my tour, regardless of where I am in the tour.

    Currently, I have about 8 hotspots names ranging from hotspot_ani_Kit, to hotspot_ani_MBR, and there's a set number based on the rooms, so I guess I could try to hide those by listing them individually and setting each ones alpha to 0?

    And ideas on code?

  • Here's what I got so far, so when it's click it's replaced by the show hotspots button, but I don't know the code to hide these animating hotspots. I think it's working, but because it's animating, maybe it's not staying hidden?

    I thought about set(plugin[hotspot_ani_Kit].visible,false); but it's not working. What's your code doing there?

    Awp! Got it! thanks a ton!

    Edited once, last by Tebasaki (February 12, 2012 at 9:13 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!