Answer the question
In order to leave comments, you need to log in
How to get the last value of a group in pygame?
I need to get x from the last value in the group and find that last value accordingly. How do I get x I kind of imagine.
It's hard for me to explain, so I'll attach a picture of how I imagine it.
Answer the question
In order to leave comments, you need to log in
You can work with a group like a list. See pygame.sprite.Group.sprites method
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question