Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Newby question about hide/show graphic

Newby question about hide/show graphic

Scheduled Pinned Locked Moved Help and Support
12 Posts 5 Posters 2.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    donni_didit
    wrote on last edited by
    #1

    Hi hyperPad peeps,

    I'm seeking some advice. i am working on an interactive book concept and in the scene I have a background set. I want a graphic to appear when an object is triggered (touched), then to disappear when it is triggered again. I'm not really sure how to do it, the ways I have tried are not working. How would you go about it? Or can you point me to the right tutorial? Please pretty please :)

    Donni

    1 Reply Last reply
    0
    • Aidan_FireA Offline
      Aidan_FireA Offline
      Aidan_Fire
      wrote on last edited by Aidan_Fire
      #2

      There are quite a few ways to do this, here's how I would do it:
      Add a box container with a default value of 1, when you touch an object it will run 2 ifs, one of them for if the box container is equal to negative 1 and the other for positive 1, under each of those have your hide and show graphic. Also, add a multiply box container by -1 and set the box container to the multiply result. I hope you know how to use input fields, here's a screenshot:
      0_1490837343093_IMG_3470.PNG
      Obviously don't hide the object you are touching lol like I am, otherwise you won't be able to trigger it.

      1 Reply Last reply
      0
      • Michael KhalfinG Offline
        Michael KhalfinG Offline
        Michael Khalfin
        wrote on last edited by GameCRAZY
        #3

        Hi!

        @donni_didit This is actually a really simple task!
        If you already have the graphic just go into its behaviors and go to the "appearance" panel. You can make the graphic disappear using the "hide graphic" behavior.

        You can also achieve this with the "set color" behavior, also under the "appearance" panel. Just set the opacity to 0.

        @Aidan-Oxley Your way is so complicated and completely unnecessary XD. Just use a "started touching" behavior!

        Aidan_FireA 1 Reply Last reply
        0
        • D Offline
          D Offline
          donni_didit
          wrote on last edited by
          #4

          Thankyou so Much!

          Murphy's law, I just made it work after watching a tutorial on something else in hyperPad! I placed the graphic on my scene, then hide graphic in behaviour... then triggered by another object being touched, pretty much like the second commenter (I can't see your post replying). So freaking obvious!

          I'll suss Aiden's way too because I really want to get a good grasp on how hyperPad works and I think learning by doing is good stuff!

          Thankyou!!

          1 Reply Last reply
          0
          • Michael KhalfinG Michael Khalfin

            Hi!

            @donni_didit This is actually a really simple task!
            If you already have the graphic just go into its behaviors and go to the "appearance" panel. You can make the graphic disappear using the "hide graphic" behavior.

            You can also achieve this with the "set color" behavior, also under the "appearance" panel. Just set the opacity to 0.

            @Aidan-Oxley Your way is so complicated and completely unnecessary XD. Just use a "started touching" behavior!

            Aidan_FireA Offline
            Aidan_FireA Offline
            Aidan_Fire
            wrote on last edited by
            #5

            @GameCRAZY I thought donni wanted it to trigger on and off when you keep touching it.

            Aidan_FireA 1 Reply Last reply
            0
            • Aidan_FireA Aidan_Fire

              @GameCRAZY I thought donni wanted it to trigger on and off when you keep touching it.

              Aidan_FireA Offline
              Aidan_FireA Offline
              Aidan_Fire
              wrote on last edited by
              #6

              @Aidan-Oxley If I'm wrong in what you asked, definitely don't use my way, it's for if you touch an object it will hide something, if you touch it again it will hide.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                donni_didit
                wrote on last edited by
                #7

                Now i'm on the imac, can see better !!! Yeah I just wanted to touch on an object, something else appears, then it disappears when you click on the object again. I like trying different ways though as I think it would help me get a better grip of what hyperPad does. How I did it, I think is how GameCRAZY suggested. You guys are awesome by the way!!!!!

                Michael KhalfinG 1 Reply Last reply
                0
                • MurtazaM Online
                  MurtazaM Online
                  Murtaza
                  Admin
                  wrote on last edited by Murtaza
                  #8

                  In one of the previous updates we added a "Sequence" behaviour (under Logic category).
                  Where it will do what Aidan has suggested automatically.

                  So if you have Hide Graphic, and Show graphic connected tot he sequence.
                  The first time Sequence runs, it will hide the graphic. The next time Sequence runs it will do show graphic.

                  So just do this:

                  Started touching ---> Sequece --> Hide Graphic
                                                \-> Show graphic
                  
                  

                  Sequence also has a random option built in, where it will randomly trigger a connected behaviour. Not what you want to do here, but cool feature and may be useful in the future :).

                  Jack de WildeJ 1 Reply Last reply
                  0
                  • MurtazaM Murtaza

                    In one of the previous updates we added a "Sequence" behaviour (under Logic category).
                    Where it will do what Aidan has suggested automatically.

                    So if you have Hide Graphic, and Show graphic connected tot he sequence.
                    The first time Sequence runs, it will hide the graphic. The next time Sequence runs it will do show graphic.

                    So just do this:

                    Started touching ---> Sequece --> Hide Graphic
                                                  \-> Show graphic
                    
                    

                    Sequence also has a random option built in, where it will randomly trigger a connected behaviour. Not what you want to do here, but cool feature and may be useful in the future :).

                    Jack de WildeJ Offline
                    Jack de WildeJ Offline
                    Jack de Wilde
                    wrote on last edited by
                    #9

                    @Murtaza we keep forgetting about it 😦

                    1 Reply Last reply
                    0
                    • D donni_didit

                      Now i'm on the imac, can see better !!! Yeah I just wanted to touch on an object, something else appears, then it disappears when you click on the object again. I like trying different ways though as I think it would help me get a better grip of what hyperPad does. How I did it, I think is how GameCRAZY suggested. You guys are awesome by the way!!!!!

                      Michael KhalfinG Offline
                      Michael KhalfinG Offline
                      Michael Khalfin
                      wrote on last edited by
                      #10

                      @donni_didit Thanks!

                      By the way, to tag me insert an @ symbol and then my name. :)

                      @Murtaza @Jack8680 :(

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        donni_didit
                        wrote on last edited by
                        #11

                        thanks all, and especially @GameCRAZY for the extra tip! :hamster:

                        1 Reply Last reply
                        0
                        • Michael KhalfinG Offline
                          Michael KhalfinG Offline
                          Michael Khalfin
                          wrote on last edited by
                          #12

                          @donni_didit :)

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Search