Right now I have this code:
cookie = pg.image.load("cookie.png")
screen.blit(cookie, (mid) #mid = WIDTH/2,HEIGHT/2
#---mainloop---#
running = True
while running:
pg.display.flip()
for event in pg.event.get():
if event.type == QUIT:
running = False
a = pg.mouse.get_focused(cookie)
if a:
print(a)
This doesn't print so is there any way to get around this?
I have only a couple of weeks experience with Pygame, so sorry if this was an obvious answer.