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. Passing a Ball

Passing a Ball

Scheduled Pinned Locked Moved Help and Support
5 Posts 4 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.
  • A Offline
    A Offline
    Aaron Cunn
    wrote on last edited by
    #1

    Hello, is anyone able to inform me on how to pass a ball from one joystick controlled player to another. This would be used in a NRL based game where you can only pass backwards. Would this also be allowed to be interceptable. Any replies will be greatly appreciated.

    1 Reply Last reply
    0
    • Aidan_FireA Offline
      Aidan_FireA Offline
      Aidan_Fire
      wrote on last edited by
      #2

      I'm not sure exactly how your game works, but if the joystick controlled players and the ball are physics objects, you could have something like weld attach ball to the player holding it, when he throws it then detach the object and apply a force in the direction he throws it. Then to catch it the other player would weld attach it when it collides with them. It might look stupid because the ball would look like it just sticks to them wherever it hits the player. I hope this makes sense, if not could you give some more info?

      iTap DevelopmentI 1 Reply Last reply
      0
      • Aidan_FireA Aidan_Fire

        I'm not sure exactly how your game works, but if the joystick controlled players and the ball are physics objects, you could have something like weld attach ball to the player holding it, when he throws it then detach the object and apply a force in the direction he throws it. Then to catch it the other player would weld attach it when it collides with them. It might look stupid because the ball would look like it just sticks to them wherever it hits the player. I hope this makes sense, if not could you give some more info?

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

        @Aidan-Oxley so the ball doesn't stick to the player anywhere, you could have it move to the characters hands or something when it collides, and then weld attach.
        I don't know how well it would work if the character is moving.

        Aidan_FireA 1 Reply Last reply
        0
        • iTap DevelopmentI iTap Development

          @Aidan-Oxley so the ball doesn't stick to the player anywhere, you could have it move to the characters hands or something when it collides, and then weld attach.
          I don't know how well it would work if the character is moving.

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

          @iTap-Development Yeah. You could even just turn on a timer for the ball to just move to the player at an anchor (timer 0s).

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

            Here's what I sent to your email. Posting here since it may give other users an idea. It's not a fully fleshed out method, but I think the concept is sound.

            If you only want to be able to pass backwards, you can use a behaviour like calculate direction (may be renamed to calculate angle, cant remember).
            to figure out where the team mate is in relation to the player. If they are behind, then turn on the "pass button" behaviours.
            This concept requires some math and calculations to get right. But I think that is one way that may work. Or at least it's an idea on how to get started.

            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