logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Logic & Behavior Examples

    Scheduled Pinned Locked Moved
    WIP and Showcase
    4
    16
    1.2k
    Loading More Posts
    • 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.
    • TutorialDoctorT
      TutorialDoctor
      last edited by TutorialDoctor

      Before I can really start cranking out games I have decided to test out Hyperpad's behavior system (I'm good to go with creating graphics now). I've started to create several logic examples and am thinking that they would be useful to others.

      However, I don't want to put anything on the Hub that will just get down votes all over the place. The senses system I posted is doing a bit better now that people are starting to "get it."

      So far I have the following examples:

      • Inventory (uploaded to the hub)
      • Array Logic
      • The 5 senses (uploaded to the hub)

      I will add more as I think of them. Would this be useful to anyone?

      1 Reply Last reply Reply Quote 0
      • TutorialDoctorT
        TutorialDoctor
        last edited by

        1_1487872729911_IMG_1883.PNG 0_1487872729909_IMG_1882.PNG

        1 Reply Last reply Reply Quote 0
        • TutorialDoctorT
          TutorialDoctor
          last edited by

          0_1488036661135_IMG_1890.PNG

          Is that all of them (data types)?

          1 Reply Last reply Reply Quote 0
          • TutorialDoctorT
            TutorialDoctor
            last edited by

            Forgot about Classes. I will see if I can type up documentation of how one would use these behaviors/data types.0_1488040117499_IMG_1893.PNG

            1 Reply Last reply Reply Quote 0
            • G
              Greg Smith
              last edited by

              Tutorial Doctor:

              By all means explain all of these things you have posted and as many more as you can.

              Without detailed instruction Hyperpad will remain a mystery and not develop into a widely used platform.

              You have my vote.

              Greg Smith

              1 Reply Last reply Reply Quote 1
              • TutorialDoctorT
                TutorialDoctor
                last edited by TutorialDoctor

                Dot Product:

                Perhaps a simple behavior for dot and cross product would be nice? Absolute value too? @Murtaza

                0_1488403863647_IMG_1902.PNG

                1 Reply Last reply Reply Quote 0
                • TutorialDoctorT
                  TutorialDoctor
                  last edited by

                  Fuzzy Logic

                  0_1488410381016_IMG_1906.PNG

                  1 Reply Last reply Reply Quote 0
                  • TutorialDoctorT
                    TutorialDoctor
                    last edited by

                    Point and Click

                    0_1492613341729_IMG_2305.PNG

                    1 Reply Last reply Reply Quote 0
                    • Aidan_FireA
                      Aidan_Fire
                      last edited by

                      Dot and cross product are multiplying vectors, hyperPad gives no vectors, just numbers you can do maths with (x + y or i + j means nothing to hyperPad). It would make more sense to do dot and cross products manually. Absolute value would be nice, this way I don't have to lose some performance using square root then square, or if its negative then multiply by negative one and store it in a box container etc.

                      TutorialDoctorT 1 Reply Last reply Reply Quote 0
                      • TutorialDoctorT
                        TutorialDoctor @Aidan_Fire
                        last edited by TutorialDoctor

                        @Aidan-Oxley This made we wonder if I could add array's in hyperpad.... NOPE! It crashes. I could use Modify array to do some stuff though (haven't used this yet).

                        1 Reply Last reply Reply Quote 0
                        • GameCRAZYG
                          GameCRAZY
                          last edited by

                          @TutorialDoctor You can add arrays into Hyperpad. I have added arrays and dictionaries many, many, many times, and I have used arrays and dictionaries for many, many, many things.

                          You can also make arrays in 2d, 3d, 4d, etc. You can do the same with dictionaries, and you can put arrays and dictionaries inside of each other. I have tried it all, and it is fully operational.

                          TutorialDoctorT 1 Reply Last reply Reply Quote 0
                          • TutorialDoctorT
                            TutorialDoctor @GameCRAZY
                            last edited by TutorialDoctor

                            @GameCRAZY Im referring to an operation like [1,2,3] + [4,5,6] = [1,2,3,4,5,6] or [5,7,9]

                            Aidan_FireA 1 Reply Last reply Reply Quote 0
                            • GameCRAZYG
                              GameCRAZY
                              last edited by

                              @TutorialDoctor Oh, I thought you meant like adding arrays into the behavior canvas. Oops...

                              1 Reply Last reply Reply Quote 0
                              • TutorialDoctorT
                                TutorialDoctor
                                last edited by TutorialDoctor

                                Random Speed

                                0_1492665839196_IMG_2373.PNG

                                1 Reply Last reply Reply Quote 0
                                • Aidan_FireA
                                  Aidan_Fire @TutorialDoctor
                                  last edited by

                                  @TutorialDoctor it wouldn't be too hard to do those operations manually to get either result. I'd use loops I think.

                                  1 Reply Last reply Reply Quote 0
                                  • TutorialDoctorT
                                    TutorialDoctor
                                    last edited by TutorialDoctor

                                    3D Rotation

                                    0_1492805923546_IMG_2549.PNG

                                    Doesn't quite work, but you get the idea. I could actually take some pointers on how to set this up to work smoothly.It looks like this does work, but it doesn't work when I try to use it with Joystick Controlled. SOLVED IT. It is because Should Flip was still on! And order matters!

                                    0_1492807892827_IMG_2550.PNG

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post