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. "Breakout" style physics for ball

"Breakout" style physics for ball

Scheduled Pinned Locked Moved Help and Support
6 Posts 3 Posters 1.0k 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.
  • J Offline
    J Offline
    [MufasaFace]
    wrote on last edited by
    #1

    Trying to make the ball bounce and travel forever. I know if there is no gravity, no air resistance, and no friction the ball should travel forever. I have it set up this way but the ball always slows down. Does someone have a solution for this or am I encountering a bug?

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

      You should set a timer, and constantly change the gravity of the ball. That way it will always move around in random directions. Depending on the effect you are looking for, you can experiment with random number values for speed and different timer values for delays. This only a basis, and you can do a lot with this type of set-up.

      1 Reply Last reply
      0
      • J [MufasaFace]

        Trying to make the ball bounce and travel forever. I know if there is no gravity, no air resistance, and no friction the ball should travel forever. I have it set up this way but the ball always slows down. Does someone have a solution for this or am I encountering a bug?

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

        @Justin-Hattaway if you want a ball to bounce forever, set the bounce property to 100% for the ball and the objects it bounces off of.

        J 1 Reply Last reply
        0
        • iTap DevelopmentI iTap Development

          @Justin-Hattaway if you want a ball to bounce forever, set the bounce property to 100% for the ball and the objects it bounces off of.

          J Offline
          J Offline
          [MufasaFace]
          wrote on last edited by
          #4

          @iTap-Development Thanks, I figured it out soon after asking. That's all it took! I didn't realize those properties were in %'s.

          This is my first time working with the hyperpad app, I still use gamepress (for fun).

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

            Oh, I didn't realize that's what you were looking for. Sorry about that; my method will have you going in random directions all over the screen, but it's really useful anyway!

            Welcome to Hyperpad!

            J 1 Reply Last reply
            0
            • Michael KhalfinG Michael Khalfin

              Oh, I didn't realize that's what you were looking for. Sorry about that; my method will have you going in random directions all over the screen, but it's really useful anyway!

              Welcome to Hyperpad!

              J Offline
              J Offline
              [MufasaFace]
              wrote on last edited by
              #6

              @GameCRAZY That is fine, I am making a breakout game (for fun) and your suggestion made me think to have certain bricks in the game that adjust the balls speed when broken. So far I have made regenerating bricks and ball/paddle power-ups. I'm thinking next will be a paddle health bar. =]

              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