December 4th, 2003, 05:50 PM
im just learning pygame, i made a small surface move around according to key board presses. i update the screen with pygame.display.update(). i learned however, that you can dictate which rect to update, making the processing faster. here is the code, then ill explain the problem..
when i put in prct as the parameter in update, nothing is updated, all of the white boxes remain. when i enter player.get_rect() as the parameter, the box can move, but it moves in this frame which is basically the original box outline. thats the only place its visible, inside the original outline. once it moves out, it starts to disapear. how is this supposed to work?
from pygame.locals import *
for event in pygame.event.get():