[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Function problem



You're going to need to show us the entire file, sorry Yanom. Can't tell anything from that one function. The error however, is not caused by that function, but by whatever comes before it. Maybe an unbalanced parenthesis?

On Tue, Apr 28, 2009 at 4:45 PM, Yanom Mobis <yanom@xxxxxxxxxxxxxx> wrote:
This error:

  File "main.py", line 36
    def pymageinit():
      ^
SyntaxError: invalid syntax

is caused by this function:

def pymageinit():
    global magi
    magi = [Mage("Player",20, 200), Mage("Arcawen",20, 200)]



does anyone know what i'm doing wrong?




--
Visit my blog at http://oddco.ca/zeroth/zblog