assuming <rect(338, 100, 24, 200)> is an instance of the pygame Rect class, you can access the individual values with .x .y .w .h Example: print(array[i].x). If that's not the case, it would be helpful if you added more information about the class.
- Nik
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
<rect(338, 100, 24, 200)>is an instance of the pygame Rect class, you can access the individual values with .x .y .w .h Example:print(array[i].x). If that's not the case, it would be helpful if you added more information about the class. - Nik