0
Q:

how to remove object from class pygame

A = []
while gameLoop:
...

a = Asteroid()
A.append(a)`

for i in A:
    i.move()
    if i.pos > dWidth:
         del i  # This doesn't remove the object
0

New to Communities?

Join the community