[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Why Won't My Pizza Fall?



On Jan 12, 2008 5:03 PM, bhaaluu <bhaaluu@xxxxxxxxx> wrote:

Exception exceptions.NameError: "global name 'screen' is not defined"
you'll need to define screen, then.  Try something like
screen = pygame.display.set_mode(#your resolution)
On Jan 12, 2008 4:21 PM, earlylight publishing <earlylightpublishing@xxxxxxxxx> wrote:
TypeError: init_sprite() got an unexpected keyword argument 'dx'
I don't really use sprites, so here's a guess.  It doesn't like dx.  Check Pygame.org to see how many and what type of arguments sprites need.  Also, I'd just feed in direct values, like:
self.init_sprite(screen, x, y, image, dx, dy)
instead of:
self.init_sprite(screen = screen, x = x, y = y, image = image, dx = dx, dy = dy)
Ian