Re: [pygame] Background ghosts

2009-01-02 Thread Jake b
As for the splitting the sprites, I considered that. The problem is that when a row is complete (just like in Tetris), a whole piece that fell wouldn't necessarily disappear, but only part of one. I guess I could separate each piece into multiple sprites, but that would involve dozens of

Re: [pygame] Background ghosts

2009-01-02 Thread Weeble
Michael Phipps: Anyway, if someone wants to take a look, the code is attached... In this line: blocksprite = self.makenewblocksprite(group) You create a new sprite and add it to group, but you do not remove the old one. So you end up with a group filled with many sprites. The reason you

Re: [pygame] Background ghosts

2009-01-02 Thread Michael Phipps
Weeble - You nailed it! Thanks for your help - it is very much appreciated. Michael

Re: [pygame] Background ghosts

2009-01-01 Thread Michael Phipps
- From: Jake b [ninmonk...@gmail.com] Date: 12/31/2008 23:12 To: pygame-users@seul.org Subject: Re: [pygame] Background ghosts It looks like you never clear the screen. try something like: def drawBoard(): self.screen.fill( (128,128,128) ) blit background to display for piece

Re: [pygame] Background ghosts

2009-01-01 Thread Michael Phipps
: [pygame] Background ghosts Hi Jake! Thanks for responding. The background that I blit in is the same size as the display surface, so I really am clearing the screen. :-/ I can see this - when I complete a row, I redraw the screen and everything looks fine. Then a new sprite starts making its