I'm working on a pygame project at the moment and I'm wondering if there is an easy way to delete all sprites in a class. I have all the sprites in a group called self.spritegroup, so I couldn't just delete all objects in a group. Is there a simple shortcut to delete all objects in a class?
Well you could always just re-assign a new group object to your old group.
your_old_group = new_group
I'm not entirely sure but it seems kill is meant to delete specific sprites.
Pygame delete all objects in class