I trying to create game using pygame,then using myTarget=pygame.sprite.Group() My problem is how to create if statement that tell if myTarget=0, I already using if myTarget=="0" if myTarget == [0] But none of that code triggered, I also already checked that inside that group no more sprites (using print(myTarget) that says <Group(0 sprites)> Sorry for my English
Aucun commentaire:
Enregistrer un commentaire