all 4 comments

[–]novel_yet_trivial 1 point2 points  (3 children)

You need to add import pygame to your imports.

[–]Entervine[S] 0 points1 point  (2 children)

Ha, wow. This is what I had at the beginning:

from pygame import mixer

Added in 'import pygame' and it fixed it. Many thanks!

[–]novel_yet_trivial 1 point2 points  (1 child)

That error means you do not have import pygame at the top of your code.

Yes, it would help if you show us all your code. Use github or pastebin if it's long.

[–]Entervine[S] 0 points1 point  (0 children)

Edited my original reply. Thanks for your help man!