Patch needs help-bouncing ball

    Feb 22 2010 | 12:17 pm
    Hey Everyone,
    So I finally found out how to upload text-patches on here.
    I was hoping someone could take a look at my patch and help me figure out a way to make the ball bounce off the walls and off the paddles when they hit/collide!
    Thanks in advance. Cheers.
    [MOD - removed uncompressed patch]

    • Feb 22 2010 | 12:29 pm
      alright man, word of warning for future posts of text from a patch.
      the best way to post text is to select all the patch in the window, and go to edit, copy compressed. it will be a hell of a lot smaller to post and take less space...
    • Feb 22 2010 | 12:56 pm
      for some reason it stays deselected-not allowing me to compress my text.
      'm really sorry though.
    • Feb 22 2010 | 5:40 pm
      not to mention, your patch was truncated so we can't even take a look.
      0 - make sure your max version is updated, at least to 5.1.0 1 - unlock your patch 2 - select all objects in your patch (Edit - Select All) 3 - Edit -> Copy Compressed
      if you are still having problems copying your patch with Copy Compressed, then you need to contact
    • Feb 22 2010 | 6:42 pm
      Here it is! I got it:
    • Feb 22 2010 | 9:38 pm
      this might get you started...
    • Feb 23 2010 | 10:35 am
      wow! thanks MIB. its still pretty confusing, but I'm studying it :)
    • Feb 23 2010 | 7:10 pm
      Hey how do i get the ball to change values vertically? it won't change in terms of "y-axis" at all.
    • Feb 23 2010 | 7:33 pm
      not sure what you mean but this works for me:
    • Feb 24 2010 | 8:01 am
      Hi MIB, Thanks again for all your help. Unfortunately, that is not what I meant. I want the ball to change its y value when in motion. Because this is going to be a game between two people, if the ball stays at the same height there will be no challenge. I need it to randomly change *during* the game.
      Thank again :)
    • Feb 24 2010 | 8:33 pm
      well, I can't do your whole project for you :) I gave you some pointers, showed you how to do some simple collision detection (as did some other people as I saw in your cross posting!!) and how to move your ball up and down. From here you should be able to work out how to do most things you need. If you have a specific problem I will be happy to help. Post the patch with your attempt and I will gladly take a look.
      Until then...
    • Feb 24 2010 | 8:49 pm
      haha - you're right. i'm just nervous, because its due this weekend! I'm trying, its just all new to me. Until then-thanks again friend!