I have an event which makes me able to move a sqaure(a_block) with the mouse. However, I can't seem to change it to move if the mousebutton is constantly pressed down
if event.type == pygame.MOUSEMOTION:
mouse_position = pygame.mouse.get_pos()
a_block.set_position(mouse_position[0],mouse_position[1]