Need help with pygame.sprite.Group

Started by
1 comment, last by Andreas Persson 17 years ago
Hi I was wondering how I can iterate trough a pygame.sprite.Group. I need to get each of the objects rect to check position. The Group has a iter function but how do you use it?
Casual game dev www.apgames.se
Advertisement
Probably with a for loop.

eg.
for sprite in group:    do_something_with(sprite)
Thanks :)
Casual game dev www.apgames.se

This topic is closed to new replies.

Advertisement