I'm trying to play background music and the music keeps on starting. I tried to use
music.busy, but I can't figure it out. I want it to check if sound/music is playing, then I want it to print "music is playing". If a sound/music isn't playing I want it to start up a new song and loop it.
def musica(): if pygame.mixer.music.get_busy() == True: print("music is playing") if pygame.mixer.music.get_busy() == False: music.play(loops=-1)