💻 *Source Code + mp3 Files:* www.buymeacoffee.com/fabiomusanni/e/183129 ☕ *Buy me a coffee:* www.buymeacoffee.com/fabiomusanni 😍 *One-off donation:* www.paypal.me/FabioMusanni/ ⬇️ *LEARN ON THE BEST LEARNING PLATFORMS* 😉💪 ⬇️ *SKILLSHARE* _(Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)_ 🔗 skillshare.eqcm.net/5gxzD2 (Affiliate) *DATACAMP* _(Python, ChatGPT, SQL, Power BI, and a lot more)_ 🔗 datacamp.pxf.io/vN1bDj (Affiliate) *COURSERA PYTHON* _(For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):_ 🔗 imp.i384100.net/k0Nk60 (Affiliate) *COURSERA WEB DEVELOPMENT* _(Full Stack, Front-End, Back-End, Web Design and a lot more):_ 🔗 imp.i384100.net/EKWxBW (Affiliate) Thank you for the support!❤ 🎥All my videos about Python: ruclips.net/p/PLs8qUrmRvaR0IT4IwJl-LSweAdACW-yLK
When you call "play", there should be an option called "loops", if you set that to -1 the sound will keep looping. I think I mentioned that somewhere in the video.
@@FabioMusanni I don't know why your code didn't worked for me, but it solved by doing this: mixer.init() sound = mixer.Sound('your_sound.mp3') sound.play() sleep(5)
💻 *Source Code + mp3 Files:* www.buymeacoffee.com/fabiomusanni/e/183129
☕ *Buy me a coffee:* www.buymeacoffee.com/fabiomusanni
😍 *One-off donation:* www.paypal.me/FabioMusanni/
⬇️ *LEARN ON THE BEST LEARNING PLATFORMS* 😉💪 ⬇️
*SKILLSHARE*
_(Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)_
🔗 skillshare.eqcm.net/5gxzD2 (Affiliate)
*DATACAMP*
_(Python, ChatGPT, SQL, Power BI, and a lot more)_
🔗 datacamp.pxf.io/vN1bDj (Affiliate)
*COURSERA PYTHON*
_(For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):_
🔗 imp.i384100.net/k0Nk60 (Affiliate)
*COURSERA WEB DEVELOPMENT*
_(Full Stack, Front-End, Back-End, Web Design and a lot more):_
🔗 imp.i384100.net/EKWxBW (Affiliate)
Thank you for the support!❤
🎥All my videos about Python: ruclips.net/p/PLs8qUrmRvaR0IT4IwJl-LSweAdACW-yLK
Great Video, thanks for the help
Thank you! Glad the video helped! 💪😊
how to add background music in your game?😢
Thanks, for this video. Now Pygame runs very well.
Glad to hear that! 😍💪
Best video on yt..
the best video-instruction!!!!!!!!!!
Glad you liked it, thank you for the comment! 💪😍
Thanks for this video. Really helped me figure out what I was doing wrong.
Thank you for the comment! 😍 I'm glad the video helped you shed some light on the topic 🤗💪
is there a way to have a sound keep repeatedly playing without having to manually enter an input?
When you call "play", there should be an option called "loops", if you set that to -1 the sound will keep looping. I think I mentioned that somewhere in the video.
my game over music keeps repeating even tho i added the loop = 0. im so stuck
Maybe you are looping the play command
don't write anything in the brackets instead of the 'loops = 0' :d
Whenever music is in my while true loop it never plays
Hello 😊
If the code is the same, it's impossible it doesn't work, check carefully the indentation and the code itself.
@@FabioMusanni I don't know why your code didn't worked for me, but it solved by doing this:
mixer.init()
sound = mixer.Sound('your_sound.mp3')
sound.play()
sleep(5)