I want to use the self variables in one class and use them in another class which already has its own self variables how to do I do this. Some code here to help.
class A():
self.health = 5
class B(): # This class already has a self function
for sprite in all_sprites:
if pygame.sprite.collide_circle(self, sprite):
self.collide = True
self.health -= 0.1
You're misunderstanding.
selfis only an internal reference. Within the class, you refer toself. Otherwise, you refer to thespriteobject directly as such,