W
W
Waffle472022-03-13 19:36:29
Python
Waffle47, 2022-03-13 19:36:29

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.
622e1d79c9eed788116703.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
YariKartoshe4ka, 2022-03-14
@YariKartoshe4ka

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 question

Ask a Question

731 491 924 answers to any question