I created a magic 8 ball program, and when you click on the screen it doesn’t do anything. here is the code:
import pygame
import random
pygame.init()
#Here this is where the problem happens:
for event in e:
if event.type == pygame.MOUSEBUTTONUP:
newMessage()
I tried using the event.type == pygame.MOUSEBUTTONUP
but it didn’t work.
New contributor
IAmConfused is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.