opening and closing on tap

  1. 2 months ago

    I am having trouble working out how to open and close things on tap. I will be using this function throughout the story app I am creating.

    On certain pages, a "?" button will signify that a quiz is there. Tapping the button will open the quiz. That part is fine. But I want the button to change to an "x" and when tapped will close the quiz.

    I will have the same for info buttons. a "book" icon will be tapped and information will appear. The icon will change to an "x" and when tapped the information will close.

    Is there a step-by-step tutorial to do this? I have searched but cannot find anything.

  2. Hi,

    One way you can accomplish that is by using 2 buttons overlapped. On top the '?' button and bellow the 'X' button. Then you can attach for example the following interactions

    '?' button:
    - Tap or Touch Up
    Hide (self)
    Show Quiz

    'X' button:
    - Tap or Touch Up
    Show '?' button
    Hide Quizz

 

or Sign Up to reply!