How to test for collision with pygame corner, and drag selected corner?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CodeBug2012
    New Member
    • Mar 2012
    • 1

    How to test for collision with pygame corner, and drag selected corner?

    How do I test a collision between two Rect objects to see if one collides with the other at a certain position?

    Code:
    pseudocode ---
    
    if event.type == pygame.MOUSEBUTTONDOWN:
        if mouseRect(imageRect.bottomleft):
            action1()
        if mouseRect(imageRect.bottomright):
            action2()
Working...