Kent Johnson wrote: >I guess counters is iterable but not a sequence. Try this: > for vCounter in reversed(list(counters)):
Hi Kent,
Thanks for your help. This solves my problem:
vPos = pygame.mouse.get_pos()
for vCounter in reversed(list(counters)):
if vCounter.rect.collidepoint(*vPos):
# vCounter now points to the sprite we want to treat
break
:-)
James
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
