Hi!
I've never used pygame, so regarding that I'm not competent to give any advice.
But what I think might be happening:
Image format(.png) What I found on pygame.org
"pygame may not always be built to support all image formats. At minimum it will support uncompressed BMP. If pygame.image.get_extended() returns 'True', you should be able to load most images (including PNG, JPG and GIF)."
I'd check that first.
The way the image is loaded. Kind of through another function. I'd separate the code, meaning creating image first(path to image or you can try creating image object), than loading it, checking if everything is OK.
Anyway, without any extended code or error messages I can do more than guess.
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi!
I've never used pygame, so regarding that I'm not competent to give any advice.
But what I think might be happening:
Image format(.png) What I found on pygame.org
"pygame may not always be built to support all image formats. At minimum it will support uncompressed BMP. If pygame.image.get_extended() returns 'True', you should be able to load most images (including PNG, JPG and GIF)."
I'd check that first.
The way the image is loaded. Kind of through another function. I'd separate the code, meaning creating image first(path to image or you can try creating image object), than loading it, checking if everything is OK.
Anyway, without any extended code or error messages I can do more than guess.