Re: [pygame] Never seen this before

2009-04-25 Thread Yanom Mobis
what does the super() function do? --- On Fri, 4/24/09, Tyler Laing trinio...@gmail.com wrote: From: Tyler Laing trinio...@gmail.com Subject: Re: [pygame] Never seen this before To: pygame-users@seul.org Date: Friday, April 24, 2009, 7:58 PM You get that kind of error when you use a recursive

Re: [pygame] Never seen this before

2009-04-25 Thread Yanom Mobis
the two files for the game are attached --- On Fri, 4/24/09, Brian Song unlucky...@gmail.com wrote: From: Brian Song unlucky...@gmail.com Subject: Re: [pygame] Never seen this before To: pygame-users@seul.org Date: Friday, April 24, 2009, 9:57 PM  If the problems fixed, yay. If not, you should

Re: [pygame] Never seen this before

2009-04-25 Thread Tyler Laing
#Group.add -Tyler On Sat, Apr 25, 2009 at 6:34 AM, Yanom Mobis ya...@rocketmail.com wrote: the two files for the game are attached --- On *Fri, 4/24/09, Brian Song unlucky...@gmail.com* wrote: From: Brian Song unlucky...@gmail.com Subject: Re: [pygame] Never seen this before To: pygame-users

Re: [pygame] Never seen this before

2009-04-25 Thread Marius Gedminas
On Sat, Apr 25, 2009 at 06:33:00AM -0700, Yanom Mobis wrote: what does the super() function do? It's a way to call the superclass version of the method you're overriding. (Technically, it's a built-in type, and not a function, but that's an irrelevant implementation detail). Read more about

Re: [pygame] Never seen this before

2009-04-25 Thread Yanom Mobis
trinio...@gmail.com Subject: Re: [pygame] Never seen this before To: pygame-users@seul.org Date: Saturday, April 25, 2009, 9:12 AM Okay, I had assumed you had written your own python class, subclassing one of the Group classes, and had used .add within the overridden method. I've made that mistake

Re: [pygame] Never seen this before

2009-04-25 Thread Tyler Laing
Laing trinio...@gmail.com Subject: Re: [pygame] Never seen this before To: pygame-users@seul.org Date: Saturday, April 25, 2009, 9:12 AM Okay, I had assumed you had written your own python class, subclassing one of the Group classes, and had used .add within the overridden method. I've made

Re: [pygame] Never seen this before

2009-04-25 Thread Ian Mallett
On Sat, Apr 25, 2009 at 8:17 AM, Tyler Laing trinio...@gmail.com wrote: Happens to everyone. It takes time(10 years or 10,000 hours) to get good at something. I'm at about year 6-7 and I find while I still make silly mistakes, I've become much better at catching them before or during testing.

Re: [pygame] Never seen this before

2009-04-25 Thread Marius Gedminas
On Sat, Apr 25, 2009 at 08:17:11AM -0700, Tyler Laing wrote: Happens to everyone. It takes time(10 years or 10,000 hours) to get good at something. I'm at about year 6-7 and I find while I still make silly mistakes, I've become much better at catching them before or during testing. :) Silly

[pygame] Never seen this before

2009-04-24 Thread Yanom Mobis
this code level1 = [(0,0), (20, 0), (40, 0), (60, 0), (80, 0), (100,0), (120,0), (140,0), (160,0), (180,0), (200,0), (220,0), (240,0)] #positions of enemies #yatta yatta def setenemies_lvl1(): # put enemies on screen.     pygame.display.set_caption(Loading Level) #tell player it's loading    

Re: [pygame] Never seen this before

2009-04-24 Thread Tyler Laing
You get that kind of error when you use a recursive function, and it recurses down further than Python has room on the stack for. Typically, when you get this error, there's something wrong with your recursive function. What it appears to be doing is within your add function, its calling itself

Re: [pygame] Never seen this before

2009-04-24 Thread Brian Song
If the problems fixed, yay. If not, you should put up most/all your source so it's easier for people to see whats happening.