I'm a newbie at pygame [and python as a whole] and I have been recently playing around with sprites and collision, and currently I'm not sure if you can check for a collision with one sprite going into another instead of just checking for two sprites intersecting.
Is it possible to check for a sprite thats moving/colliding into another sprite with pygame?
EDIT: Heres the collision code that just checks for two sprites intersecting which i dont want, as i cannot specify which hit the other first
collision = pygame.sprite.collide_rect(player1, player2)
if collision == True:
group1.remove(player1, player2)
pygame.display.set_caption("They destroyed eachother! Press space to retry")
player1.rect.x = 5
player1.rect.y = 5
player2.rect.x = 445
player2.rect.y = 445
startanew = True
if startanew == True and keys[pygame.K_SPACE]:
group1.add(player1, player2)
pygame.display.set_caption("Squares Fight!")