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. Bug Reports
  3. Non-Issue
  4. Set Velocity Doesn't Work?!

Set Velocity Doesn't Work?!

Scheduled Pinned Locked Moved Non-Issue
30 Posts 7 Posters 15.4k 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.
  • Michael KhalfinG Offline
    Michael KhalfinG Offline
    Michael Khalfin
    wrote on last edited by
    #1

    Bug:

    I cannot get my player moving at a constant speed.

    Set Velocity only works for a little bit and then it stops. It does not work consistently!
    Move By with a timer of 0 seconds or .01 is not smooth either.

    Since when is this a problem?
    This used to be my most-used behavior, but now it isn't even working.

    Makes it hard to maintain a simple physics engine.


    @Hamed @Murtaza temporary solution?

    Dave007D 1 Reply Last reply
    0
    • Michael KhalfinG Michael Khalfin

      Bug:

      I cannot get my player moving at a constant speed.

      Set Velocity only works for a little bit and then it stops. It does not work consistently!
      Move By with a timer of 0 seconds or .01 is not smooth either.

      Since when is this a problem?
      This used to be my most-used behavior, but now it isn't even working.

      Makes it hard to maintain a simple physics engine.


      @Hamed @Murtaza temporary solution?

      Dave007D Offline
      Dave007D Offline
      Dave007
      wrote on last edited by
      #2

      @gamecrazy
      What do you mean "is not smooth either"?

      Michael KhalfinG 1 Reply Last reply
      0
      • Dave007D Dave007

        @gamecrazy
        What do you mean "is not smooth either"?

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

        @dave007 It moves, then it stops. It moves, it stops. Different amounts too.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Flame Games
          wrote on last edited by
          #4

          I use a “movable platform” for a consistent speed, does the job. You’ll just have to program your player to stop differently (If you want it to stop).

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

            I wonder what is wrong with velocity though.

            Aidan_FireA 1 Reply Last reply
            0
            • MurtazaM Offline
              MurtazaM Offline
              Murtaza
              Admin
              wrote on last edited by
              #6

              Can you be more specific on what the issue is? I'm not sure I'm understanding correctly.

              As a test, create a blank project and try to recreate this with minimal behaviours. This way you can tell if it's not some other logic causing issues.

              1 Reply Last reply
              1
              • Andrey GhostA Offline
                Andrey GhostA Offline
                Andrey Ghost
                wrote on last edited by Andrey Ghost
                #7

                Dunno, currently making a game where basically everybody moves with 'set velocity' behavior and everything is ok. It's just that this behavior needs some right settings, check if there are some other behaviors corrupting its working.

                1 Reply Last reply
                0
                • Michael KhalfinG Michael Khalfin

                  I wonder what is wrong with velocity though.

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

                  @gamecrazy Don't use timer 0s, use timer 0.016666... for smoothness. What's with set velocity, like exactly what is happening? Can we have an example project? Is your object ever being turned into a wall or scenery object even for a split second? Are there any other physics, movement, transform, etc. behaviours acting on it?

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

                    3 behaviors. No timer. Located in the orange guy.

                    When you touch the right side of the screen, the player should start moving, hence the set velocity. He should continue moving, however he should not just be stopping every time.

                    He should only be stopping when I tell him to stop, with another behavior.

                    http://bit.ly/2MTOUwW

                    Dave007D 1 Reply Last reply
                    0
                    • Michael KhalfinG Michael Khalfin

                      3 behaviors. No timer. Located in the orange guy.

                      When you touch the right side of the screen, the player should start moving, hence the set velocity. He should continue moving, however he should not just be stopping every time.

                      He should only be stopping when I tell him to stop, with another behavior.

                      http://bit.ly/2MTOUwW

                      Dave007D Offline
                      Dave007D Offline
                      Dave007
                      wrote on last edited by
                      #10

                      @gamecrazy
                      Just tested your project.
                      Your mistake is, you only used Started Touching. Then it's clear that he moves and then stops. It only moves when you touch the screen. Use "While Touching" and everything will work perfectly.

                      Michael KhalfinG 1 Reply Last reply
                      0
                      • Dave007D Dave007

                        @gamecrazy
                        Just tested your project.
                        Your mistake is, you only used Started Touching. Then it's clear that he moves and then stops. It only moves when you touch the screen. Use "While Touching" and everything will work perfectly.

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

                        @dave007 Nah, then nothing happens.

                        I wish it was that simple. )-:-)

                        Dave007D 1 Reply Last reply
                        0
                        • Michael KhalfinG Michael Khalfin

                          @dave007 Nah, then nothing happens.

                          I wish it was that simple. )-:-)

                          Dave007D Offline
                          Dave007D Offline
                          Dave007
                          wrote on last edited by
                          #12

                          @gamecrazy
                          I tested that on your project. Just replaced the Started Touching with the While Touching. And it works without problems. If it doesn't work for you, then your device must have some problem 🤔

                          Michael KhalfinG 1 Reply Last reply
                          0
                          • iTap DevelopmentI Offline
                            iTap DevelopmentI Offline
                            iTap Development
                            wrote on last edited by
                            #13

                            Just looked too, @Dave007 seems to be right

                            1 Reply Last reply
                            0
                            • Dave007D Dave007

                              @gamecrazy
                              I tested that on your project. Just replaced the Started Touching with the While Touching. And it works without problems. If it doesn't work for you, then your device must have some problem 🤔

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

                              @dave007 Yeah, it doesn’t work. Maybe you are operating the beta version of Hyperpad?

                              I’m using an iPad Pro, there shouldn’t be any issues there. I’ll see if there is a new update or something.

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

                                No update. Tried restarting. Can one of you send it to me?

                                1 Reply Last reply
                                0
                                • Michael KhalfinG Michael Khalfin

                                  @dave007 Yeah, it doesn’t work. Maybe you are operating the beta version of Hyperpad?

                                  I’m using an iPad Pro, there shouldn’t be any issues there. I’ll see if there is a new update or something.

                                  iTap DevelopmentI Offline
                                  iTap DevelopmentI Offline
                                  iTap Development
                                  wrote on last edited by
                                  #16

                                  @gamecrazy set velocity isn’t going to make it move infinitely. Once it’s set, it immediately starts to slow down, unless it set again and again(while touching)

                                  Michael KhalfinG 1 Reply Last reply
                                  0
                                  • iTap DevelopmentI Offline
                                    iTap DevelopmentI Offline
                                    iTap Development
                                    wrote on last edited by
                                    #17

                                    http://bit.ly/2MQjfg6

                                    1 Reply Last reply
                                    0
                                    • iTap DevelopmentI iTap Development

                                      @gamecrazy set velocity isn’t going to make it move infinitely. Once it’s set, it immediately starts to slow down, unless it set again and again(while touching)

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

                                      @itap-development When I put in the while touching, tapping, holding... none of it even does anything. The character remains stationery.

                                      iTap DevelopmentI Dave007D 2 Replies Last reply
                                      0
                                      • Michael KhalfinG Michael Khalfin

                                        @itap-development When I put in the while touching, tapping, holding... none of it even does anything. The character remains stationery.

                                        iTap DevelopmentI Offline
                                        iTap DevelopmentI Offline
                                        iTap Development
                                        wrote on last edited by
                                        #19

                                        @gamecrazy did you change the default object to the one in the started touching behavior?

                                        Michael KhalfinG 1 Reply Last reply
                                        0
                                        • Michael KhalfinG Michael Khalfin

                                          @itap-development When I put in the while touching, tapping, holding... none of it even does anything. The character remains stationery.

                                          Dave007D Offline
                                          Dave007D Offline
                                          Dave007
                                          wrote on last edited by
                                          #20

                                          @gamecrazy
                                          I am not using a beta version.
                                          Restart your device. If it still doesn't work, reinstall HyperPad. But make a backup of all your projects first! If it still doesn't work, the problem must be yours. It works for me without problems.

                                          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