[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] basketball trouble



Max Grinberg wrote:
> Here is where he thinks the problem is:

i think the problem is that the new Ball() instance is not added to 
a 'sprite group' that does the drawing. in your game there is 
probably a group named "all" or something like that, probably a 
RenderPlain() or RenderUpdates() class.

if you look at the code, the game draws all the sprites that are in 
this group. if the ball is not in this group, it won't be drawn on 
the screen.

i'd probably have to see the full code to be sure, but i think that 
is the problem.



____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org