Results 1 to 6 of 6

Thread: Collision Detection

  1. #1

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116

    Question Collision Detection

    I have tried and TRIED to get a good code for detecting another object coming in contact with another, and reacting accordingly. Would anyone please give me ideas for a system of collision detection and possibly the code too...?
    Anyone that gives me an idea that I will use will get their credits in the game!


    PLEEEZE TELL ME THE CODE!


    If you want to see the other VB6 games I have created, go to BLACK EAGLE PRODUCTIONS
    Ich widerstehe allem - nur nicht der Versuchung

    (I can resist anything but temptation)

  2. #2
    Zaei
    Guest
    Try searching the forums. There are countless questions on the same thing.

    Z.

  3. #3
    NOMADMAN
    Guest
    IntersectRect... That is all I will say, you can find the rest.

    NOMAD

  4. #4
    Addicted Member Osiris's Avatar
    Join Date
    Oct 2000
    Location
    Dimension Hole
    Posts
    142
    If Statement... That is all i will say, you can find the rest

    OSiRiS
    ؊Ϯϊ

  5. #5

    Thread Starter
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    Oh wow... like I hadn't figured THAT out... I KNOW I NEED AN IF STATEMENT!!!
    *sorry, mad moment of severe frustration and anger over now*
    I know I need to write something like:

    If (x.left * x.top)>(y.left * y.top) and (x.left * x.top) < (y.top * y.left) then ...


    Or something like that, but I can't get it to work!
    Ich widerstehe allem - nur nicht der Versuchung

    (I can resist anything but temptation)

  6. #6
    Addicted Member Osiris's Avatar
    Join Date
    Oct 2000
    Location
    Dimension Hole
    Posts
    142
    Originally posted by jamieoboth

    If (x.left * x.top)>(y.left * y.top) and (x.left * x.top) < (y.top * y.left) then ...


    Or something like that, but I can't get it to work!
    why would you multiply x.left * x.top? i dont see the trick there
    or maybe i'm dumb
    ؊Ϯϊ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width