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. Bounce off the walls?

Bounce off the walls?

Scheduled Pinned Locked Moved Help and Support
4 Posts 3 Posters 919 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.
  • ThisT Offline
    ThisT Offline
    This
    wrote on last edited by
    #1

    I'm trying to have a ball bounce off of all 4 sides of the screen. I've tried Collide>Propel, but it doesn't quite work. Is there a simple way to have the ball detect that it's hit the side of the screen and bounce off?

    Jack de WildeJ 1 Reply Last reply
    0
    • Michael KhalfinG Offline
      Michael KhalfinG Offline
      Michael Khalfin
      wrote on last edited by
      #2

      Make empty objects on all four sides of the screen of which are wall objects. When you collide with an empty object, bounce by messing around with physics.

      Depending on how you're trying to achieve the bounce, you could use gravity, move by, velocity, and behaviors concerning force (among many others).

      1 Reply Last reply
      0
      • ThisT This

        I'm trying to have a ball bounce off of all 4 sides of the screen. I've tried Collide>Propel, but it doesn't quite work. Is there a simple way to have the ball detect that it's hit the side of the screen and bounce off?

        Jack de WildeJ Offline
        Jack de WildeJ Offline
        Jack de Wilde
        wrote on last edited by Jack8680
        #3

        @This do what @GameCRAZY said and set the bounce of the empty objects to 100% and the bounce of the bouncing object to however much of the velocity you want to retain, no behaviours necessary. HyperPad is a bit weird with bounciness and seems to multiply the bounciness together, so having 100% bounciness will not bounce objects with 0% bounciness.

        ThisT 1 Reply Last reply
        0
        • Jack de WildeJ Jack de Wilde

          @This do what @GameCRAZY said and set the bounce of the empty objects to 100% and the bounce of the bouncing object to however much of the velocity you want to retain, no behaviours necessary. HyperPad is a bit weird with bounciness and seems to multiply the bounciness together, so having 100% bounciness will not bounce objects with 0% bounciness.

          ThisT Offline
          ThisT Offline
          This
          wrote on last edited by
          #4

          @Jack8680 Thanks! Didn't realize I had to set bounciness.

          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