inpython SyntaxError: EOL while scanning string literal using platform.techsmart.codes trying to play a sound while start is pressed

57 views Asked by At

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 answers