I am creating a game where when you kill one mob, two more appears. I have it so when you kill one mob, the two others appear, but only one stays visible and behaves like it
Try to use mobs.remove(Mob) instead Mob.kill it might work :D
Your code is erasing the Rect's width and height. If you want to use coordinates of the center, use:
self.rect = self.image.get_rect()
self.rect.center = location
What is mobs.add()
in update()
? Because update is normally called every frame, and I'm guessing mobs is a sprite group.
Your update:
for Mob in mobs: Mob.moveV() Mob.moveH() screen.blit(Mob.image, Mob.rect)
should be
mobs.update()
mobs.draw(screen)
Check out this guys example https://stackoverflow.com/a/10418347/341744