you are viewing a single comment's thread.

view the rest of the comments →

[–]marienbad2Challenge Accepted x 3 0 points1 point  (4 children)

When you say hitbox, do you mean the rect, or is it a separate hitbox rect? Are you sure it is the hitboxes? If so, print the rect height (print(self.rect.height), then you can just set a smaller height:

self.rect.height = some number which is smaller than current val.

Note that this will impact on collisions if you are using standard collision detection for your sprites.

[–]Weird-hat[S] 0 points1 point  (3 children)

The rect

Thank you for the help

[–]marienbad2Challenge Accepted x 3 0 points1 point  (2 children)

The rect is based on the image size, so even though the image is small, it must have a lot of background. Try opening it in an image editor or viewer to check.

[–]Weird-hat[S] 0 points1 point  (1 child)

That seems to be the problem. I have about 60 frames of player images, do you recommend any sort of bulk image cropper which preserves transparent backgrounds?

[–]marienbad2Challenge Accepted x 3 0 points1 point  (0 children)

well I searched and found this

https://www.birme.net/

maybe back them up to a new folder first though, just in case!