Hi, I'm confused again! I'm trying to code it so that when they click a button, it moves to a new screen. However, at the moment, it only goes to the cleared screen as long as i keep hold of the mouse button - how do I get it to stay after it's been clicked?
I know this is probably really obvious, but it won't work for me haha!
I know this is probably really obvious, but it won't work for me haha!
1 2 3 4 |
if event. type = = pygame.MOUSEBUTTONDOWN: mouse = pygame.mouse.get_pos() if student.collidepoint(mouse): screen.fill(WHITE) |