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

    I think theres a bug with this

    Scheduled Pinned Locked Moved
    Help and Support
    2
    13
    251
    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.
    • HamedH
      Hamed Admin
      last edited by

      @SplitMindGaming do you have Skip If Animating on for the animation of him flying upward?

      If your currently playing animation has that off then it will never listen to the priorities.

      SplitMindGamingS 2 Replies Last reply Reply Quote 0
      • SplitMindGamingS
        SplitMindGaming @Hamed
        last edited by

        @Hamed yes I have tried many variations of this to work. I have an animation for the character flying, then when you release the button i have an animation for the character falling, then an animation when he picks up a powerup. I tried setting each one with the skip if animating on then choosing a number to prioritize which one should animate but its either going to continually play the flying animation or the falling animation. The only way for those 2 to work flawlessy is by not selecting either on those 2. Its only when i want the character to collide with the power up to prioritize the powerup animation but it gets cancelled out by either the flying or the falling. It would be much more simpler and make more sense if i could just set the powerup collide to like a 3 under animation priority that way it finishes off that animation before going back to its regular falling and flying animation.

        1 Reply Last reply Reply Quote 0
        • SplitMindGamingS
          SplitMindGaming @Hamed
          last edited by

          @Hamed i will send you the updated game for you to see.

          1 Reply Last reply Reply Quote 0
          • HamedH
            Hamed Admin
            last edited by

            Do you have skip if animating off on your power up animation?

            1 Reply Last reply Reply Quote 0
            • HamedH
              Hamed Admin
              last edited by Hamed

              How I’d have it is skip if animating off on your flying and falling animations

              Skip with animating off on your power up

              BecUse your falling and flying are constantly triggering animations so it’s always going to try to interrupt

              SplitMindGamingS 1 Reply Last reply Reply Quote 0
              • SplitMindGamingS
                SplitMindGaming @Hamed
                last edited by

                @Hamed yes i tried it that way also

                1 Reply Last reply Reply Quote 0
                • HamedH
                  Hamed Admin
                  last edited by

                  Okay let me look at it

                  SplitMindGamingS 1 Reply Last reply Reply Quote 0
                  • SplitMindGamingS
                    SplitMindGaming @Hamed
                    last edited by

                    @Hamed i sent the files let me know if you receive it

                    SplitMindGamingS 1 Reply Last reply Reply Quote 0
                    • SplitMindGamingS
                      SplitMindGaming @SplitMindGaming
                      last edited by

                      @SplitMindGaming also that approach does work if you hit the power up and not touch anything. But player logic doesnt work that way as the user would be still touching the controls by insticnt. On the file i sent you turn off the skip if animating on the power up and release your fingers while colliding with it. You will notice that this works but next time hit the power up but at the same time press the screen. You will see that it cancels out the powerup animation.

                      1 Reply Last reply Reply Quote 0
                      • HamedH
                        Hamed Admin
                        last edited by

                        So I've looked at your project in more detail. You need to have skip if animating on your power up. However! You also need to start your flying animation back up when its done. In your situation, easiest thing to do is just connect a flying animation to your power up animation, so that when its done, it will fly. And since you have a falling animation, you don't need to worry about the flying animation taking over.

                        To give you a sense of how animate behaviour works behind the scenes it does this:

                        1. Is the currently running animation from the current behaviour? if yes don't do anything
                        2. Is the current animation currently playing and skipIfAnimating is done? If yes, don't do anything.
                        3. Should we not restore the original frame? Replace the object graphic with the last frame of the animation
                        4. Is there an animation currently playing? Do we have a priority that is the same or higher than the current animation? Then play the new animation
                        5. if there is no animation playing, play the new animation
                        SplitMindGamingS 1 Reply Last reply Reply Quote 0
                        • SplitMindGamingS
                          SplitMindGaming @Hamed
                          last edited by

                          @Hamed i see makes sense. What i did before you answered this was actually tied my animations with if statements. If flying play flying, if falling play falling, if powerup is enabled play powerup. This seems to work also.

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