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

Re: [pygame] Fwd: [Tutor] A more Pythonic way to do this



>
>                     for each in (enemyship_sprites.sprites()):
>                         each.rect.centerx = Enemy.initialx
>                         each.rect.centery = Enemy.initialy

Hi Denise.

This code above is the part where you're using initialx and initialy as
class attributes.  You probably want something like

	each.rect.centerx = each.initialx

instead.

-sjbrown