Can't get hidden objects to show on tap

  1. 3 years ago

    I am following this tutorial

    I am setting the object to hidden in the 'selection panel' then adding the 'show' action on tap in the interactive panel but it doesn't work. When I preview and tap the object it doesn't show.

    If I have it unhidden and tap to hide that works but not the other way around.

    Is there something else I need to do that I'm missing?

    Thanks for any help!

    Joanne

  2. As far as I know, a hidden object doesn't catch touches.
    So, when your object is invisible, it won't recognize the tapping action.
    This eplains why it works the other way around.

    I'd recommend using an interactive area (which is invisible, but recognizes touches) to use as your tap-area, and then show the other object with it.

    Greetings,
    Casimir

  3. Thanks! That works!

    Joanne

  4. What if I want the object to stay put until it is clicked again. Do I set the object to hide on tap? or add another action to the interactive area?

    J

  5. The easiest way would be to add the hide action to the object itself. Also make sure that your layers are in the correct order. The object should be on top, and the interactive area under it. As soon as the object is shown, it will now catch the touch, and hide itself, which allows for the interactive area to be tapped again, which creates a loop.

    Cheers,
    Casimir

  6. Thanks again. That worked.

 

or Sign Up to reply!