Image of rectangle I want to make from paint
if(blueBoxX!=redBoxX or blueBoxY!=redBoxY):
pygame.draw.rect(scrn, (0, 100, 255), (blueBoxX*75, blueBoxY*75, 75, 75), 3)
pygame.draw.rect(scrn, (255, 100, 0), (redBoxX*75, redBoxY*75, 75, 75), 3)
else:
"when they collide I want it to show by showing two colors at one spot"
I was thinking of using just straight line by pygame.draw.line but wanted to know if pygame.draw.rect was possible option
New contributor
Taiking is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.