Ask coding questions

← Back to all posts
Music in Pygame
ts12168127 (0)

Hello! I am trying to add background music to my pygame replit and I just can't figure it out. I have tried music.load and other things and I just don't know if you can hear music on replit or if I am not programming correctly. Please help me. Thanks!

Comments
hotnewtop
Coder100 (18930)

music in pygame does not work, you must use replit audio.
https://docs.replit.com/repls/audio#playing-audio-on-replit

the reason is because replit runs on a vm.