0

I am trying to make a rect move to the mouses location as long as it is being dragged. How can I do this? The loop I am going to store this in is

while stuff.collidepoint(pygame.mouse.get_pos()):

I tried to make it drag but my brain would not work

Goudyu
  • 1
  • 4
  • Can you clarify what you're trying to achieve? [This answer](https://stackoverflow.com/a/66514748/2280890) shows dragging sprites. Are you trying to draw a selection rectangle? – import random Feb 02 '23 at 06:29

0 Answers0