P
P
Pitonist2242019-05-12 01:07:26
Python
Pitonist224, 2019-05-12 01:07:26

How to change hero box in pygame?

Tell the girl how I can ignore the weapon in the picture
5cd746ce72de9017560231.png
so that this does not happen.
If the hero is directed to the right side, then I can still change the width manually, but if to the left, then I don’t.
The hero and the weapon are one image.
I take the size of the image with the help of self.rect = pygame.image.get_rect()
P.S. Couldn't have phrased the question better.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question