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

    Simple Physics Swip-Swap

    Scheduled Pinned Locked Moved
    Help and Support
    4
    19
    495
    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.
    • D
      Deeeds @GameCRAZY
      last edited by

      @GameCRAZY Personally, because you haven't described the problem.

      I've never downloaded any project and don't know how to. But do know quite a lot about physics engines. So if you can articulate the problem I can probably make some effort to troubleshoot it.

      Aidan_FireA GameCRAZYG 2 Replies Last reply Reply Quote 1
      • Jack8680J
        Jack8680 @GameCRAZY
        last edited by

        @GameCRAZY you are setting upright to 1 before getting it, so when it gets it it's set back to zero straight away:
        0_1510467892025_IMG_0444.PNG

        You should get both the attributes and then change them like this:
        0_1510467933223_IMG_0445.PNG

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

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • GameCRAZYG
            GameCRAZY @Deeeds
            last edited by

            @Deeeds Just click the link on your iPad, and it will take you straight to the project.

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

              @Jack8680 Thanks! I did not realize that!

              1 Reply Last reply Reply Quote 0
              • Jack8680J
                Jack8680 @GameCRAZY
                last edited by Jack8680

                @GameCRAZY I don't know if it's true for iOS11, but for me the links don't work from within hyperPad; I have to tap and hold the link, press copy, then paste into safari and open the file in hyperpad.

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

                  @Jack8680 That is strange, it works for me. Then again, I am running an iPad Mini that still cannot update to IOS 10...

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

                    Still not working as it should. The character is supposed to move, then jump; or vice versa. It is obviously bugging out.

                    http://bit.ly/2A82qo3

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      Deeeds @GameCRAZY
                      last edited by

                      @GameCRAZY Please, in English, without me needing to look at the project, what are trying to achieve?

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

                        @Deeeds I am trying to make the character go up and right, when it shows up and right with arrows. I am trying to make the character go right and then up, when it shows right and up with arrows.

                        It switches between the two, but it is acting up for no apparent reason. Just doing random things.

                        But honestly, just download the project if you want to help. It takes 2 seconds.

                        D 2 Replies Last reply Reply Quote 0
                        • D
                          Deeeds @GameCRAZY
                          last edited by

                          @GameCRAZY For you, it takes 2 seconds. I have to exit my current project, which takes several minutes, and then download yours, and then try to ascertain what you're doing.

                          That last part might take an enormous amount of time, especially if you can't explain what you're doing, how you're thinking it can or should be done, and what you'd like to see happen.

                          1 Reply Last reply Reply Quote 1
                          • D
                            Deeeds @GameCRAZY
                            last edited by

                            @GameCRAZY Describe your ideal, from player's perception of opportunity to the player response (psychological) and their subsequent input, the hero's movement response to this input, visual representations that change, how and why they states change, and when and where, and everything else that is part of this cycle.

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

                              @Deeeds

                              The scene has a platform, a character, and 2 arrows (one pointing right and one pointing up).

                              The behaviors:

                              • started touching (the arrows)
                              1. get attribute (rightup) ; get attribute (upright)
                                a. if attribute (rightup)=1 ; set attribute (rightup)=0 ; set attribute (upright)=1
                                b. if attribute (upright)=1 ; set attribute (rightup)=1 ; set attribute (upright)=0
                              2. rotateby 90 (arrow1) ; rotateby 90 (arrow2)
                              • started touching (the screen)
                              1. get attribute (rightup) ; if attribute (rightup)=1 ; move character (x=2, duration=1) ; jump character (power=15)
                              2. get attribute (upright) ; if attribute (upright)=1 ; jump character (power=15) ; wait (time=1) ; move character (x=2, duration=1)

                              The character is supposed to move right and then up, or up and then right. However, that only works sometimes, or rather every other time. It is definitely switching properly, but the logic just is not proper. And I do not think it is on my side because everything I am doing makes perfect sense.

                              Like how easy is this supposed to be, right?

                              Anyways, that is everything. Formatting behaviors on the forum is super-hard and takes forever :confused:

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                Deeeds @GameCRAZY
                                last edited by

                                @GameCRAZY Looks fine to me!

                                I don't see where this could go wrong.

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

                                  @Deeeds Let's see what @Jack8680 or what @Murtaza have to say about this.

                                  Jack8680J 1 Reply Last reply Reply Quote 1
                                  • Jack8680J
                                    Jack8680 @GameCRAZY
                                    last edited by Jack8680

                                    @GameCRAZY it's definitely a bug, harder to reproduce than I thought.

                                    If you have a started touching behaviour with a duration based behaviour underneath it and a jump behaviour underneath that, it will ignore the delay every second time.

                                    @administrators Here's an example project. The behaviours are in the red square:
                                    0_1511576403148_IMG_0523.PNG
                                    The square should wait a second to jump after tapping, but every second time it skips the delay.

                                    Edit: it's actually acting weird with a lot of behaviours. It does the same with joystick up/right/down/left/analog, and with stopped touching acts like a started touching behaviour and also skips the delay.

                                    In your case it is ignoring the one second duration of the move by behaviour and skipping straight to the jump so it moves and jumps at the same time.

                                    GameCRAZYG 1 Reply Last reply Reply Quote 1
                                    • GameCRAZYG
                                      GameCRAZY @Jack8680
                                      last edited by

                                      @Jack8680 Now that's weird. I wonder what is causing that.

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