Load image problem
Kluesi last edited by
I load an image on Class Definition:
Class XYZ (Scene)
Here I get a white rect, but no image. I also tried to load the image in "def setup(self):" but I get the same white rect. Only if I load the image directly in the draw procedure just before the image(...) then I get the image.
But is this the right way. I think this draw procedure runs 60 times a second. And so I also load this image 60 times.
How do I load the image the right way.
brumm last edited by
JonB last edited by
it seems here that your problem simply may be that you are calling the image
boardin one spot, and
self.boardin both places will avoid issues with scope.