Results 1 to 5 of 5

Thread: Collision...

  1. #1

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

    Collision...

    Ok, I need a FULL code that shows me how to detect if one image comes in contact with another on any part! I am making a 'space invaders' type game (2D), and without your help, it WON'T HAPPEN!
    Ich widerstehe allem - nur nicht der Versuchung

    (I can resist anything but temptation)

  2. #2
    Lively Member
    Join Date
    Jan 2002
    Location
    USA all the way!
    Posts
    82
    try my simple detection mod. It has helped me in the past.
    Attached Files Attached Files
    Often talked of, never seen,
    Ever coming, never been,
    Daily looked for, never here,
    Still approaching, coming near,
    Thousands for its visit wait,
    But alas for their fate,
    Tho' they expect me to appear,
    They will never find me here.

    What's this about?

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I haven't looked at guppy's code, but by previous posts it looks like it will be good.

    If he doesn't use it, try the IntersectRect API call, with two RECTs. If the return value is non-zero, it is intersecting. The RECT it returns tells you exactly where.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    Member
    Join Date
    Nov 2001
    Location
    Heaven........ Whats that fire doing here?
    Posts
    39

    Hey, lost and I also need this code.... Heh...

    Hey man whats up.... well, I as well need this code and would be very greatful if you could include a form, I have no clue what I am supposed to type in the form so if you could please put the form up, or display what would be in the form code, and what I would need on the form, I would be forever in your debt.

    -SPY

  5. #5
    Lively Member
    Join Date
    Jan 2002
    Location
    USA all the way!
    Posts
    82
    Here, try this. The mouse movement is a little off, but it still works good.
    Often talked of, never seen,
    Ever coming, never been,
    Daily looked for, never here,
    Still approaching, coming near,
    Thousands for its visit wait,
    But alas for their fate,
    Tho' they expect me to appear,
    They will never find me here.

    What's this about?

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