派生スプライト オブジェクトがあり、特定の条件を満たしたときにこのスプライトを削除したいと考えていました。スプライト クラス メソッド自体から 'pygame.sprite.Sprite.kill()' の形式で削除する際に問題はありますか?
class Pellet(pygame.sprite.Sprite):
  def __init__(self, tank):
  ...
  def update(self):
    """Update the position of bullets."""
    self.rect.move_ip(self.xposc, self.yposc)
    if offEdges(self.rect):
      self.kill()