I was trying to play an intro sound when the start button is pressed but no matter what i did the error kept popping up.

This was my code that was getting an error :

def intro():
intro = ['ElectricGuitarA.mp3','ElectricGuitarB.mp3','ElectricGuitarC.mp3']
if button.is_colliding_rect(x,y):'
intro.play[1]

I expected it to play either intro 1 or 2 when button is colliding with mouse, what actually happened was the error.

0

There are 0 best solutions below