Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualEdvinas Kilbauskas

Posted 05 July 2013 - 11:10 AM

In the drawGame function, delete the pygame.display.update()

That will fix it for ya.

 

It was like that because you had 2 pygame.display.update() functions in your "while not gameIsPlaying:" loop. So what happened is you drawn the game, flipped the buffer, then drawn the text and flipped the buffer again, so text and game were drawn at different buffers. So when it updated, it did it really fast, and you saw different buffer every frame, and that caused the flickering.


#4Edvinas Kilbauskas

Posted 05 July 2013 - 11:08 AM

In the drawGame function, delete the pygame.display.update()

That will fix it for ya.

 

It was like that because you had 2 pygame.display.update() functions in your "while not gameIsPlaying:" loop. So what happened is you drawn the game, flipped the buffer, then drawn the text and flipped the buffer again, so text and game were drawn at different buffers. It were updating really fast, so you saw the flickering.


#3Edvinas Kilbauskas

Posted 05 July 2013 - 11:07 AM

In the drawGame function, delete the pygame.display.update()

That will fix it for ya.

 

It was like that because you had 2 pygame.display.update() functions in your "while not gameIsPlaying:" loop. So what happened is you drawn the game, flipped the buffer, then drawn the text and flipped the buffer again, so text and game were drawn at different buffers. It were updating really fast, so you saw the flickering.


#2Edvinas Kilbauskas

Posted 05 July 2013 - 11:07 AM

In the drawGame function, delete the pygame.display.update()

That will fix it for ya.

 

It was like that because because you had 2 pygame.display.update() functions in your "while not gameIsPlaying:" loop. So what happened is you drawn the game, flipped the buffer, then drawn the text and flipped the buffer again, so text and game were drawn at different buffers. It were updating really fast, so you saw the flickering.


#1Edvinas Kilbauskas

Posted 05 July 2013 - 11:07 AM

In the drawGame function, delete the pygame.display.update()

That will fix it for ya.

 

It was like that because because you had 2 pygame.display.update() functions in your "while not gameIsPlaying:" loop. So what happened is you drawn the game, flipped the buffer, then drawn the text and flipped the buffer again, so text and game were drawn at different buffers. It were updating really fast, so you saw the flickering.


PARTNERS