December 4th, 2003, 06:50 PM
Join Date: Nov 2003
Time spent in forums: < 1 sec
Reputation Power: 0
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..
from pygame.locals import *
for event in pygame.event.get():
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?