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-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 do

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 s

Re: [pygame] Background ghosts

2009-01-01 Thread Michael Phipps
seul.org Subject: Re: [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 sprit

Re: [pygame] Background ghosts

2009-01-01 Thread Michael Phipps
Michael -Original Message- 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 ba

Re: [pygame] Background ghosts

2008-12-31 Thread Jake b
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 in fallenPieces: blit piece to display display.flip() Why do you split sprites into two groups? ( stopped, and moving ) (Not sur

[pygame] Background ghosts

2008-12-31 Thread Michael Phipps
I am finishing up my first pygame; everything has been fun and easy except this: The game is a tetris-like game (with a twist). I have the falling piece as a sprite. The background is just a bitmap. The pieces that have already fallen, I blit into place. So I have something like (in pseudo code)