Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Drawing Images in Scene.
-
Ok, so I am making an RPG game, and I need to draw an image on the screen. The problem is, however, that when I do this, I end up getting a white square where the image should be.
To make an image appear on-screen, I put my "image()" inside of the draw function. Does it make a square because it is drawn about 60 times per second, and it overflows that section of the screen, so it just turns white?
I would really like an answer to this question, and if I get an understandable one, I should have all the answers I need to successfully make my game.
Thank you lots!
-
It is likely that your image did not correctly load. are you using a built in image, or a custom image? IIRC, custom images should use abspath to get the fully qualified name. You might check you console for any warning messages.
-
It is a built-in image. I am loading it, and the image is correctly loading, but it is being called too many times a second from what I can see. How do I know? Well, I made the same image be drawn on the scene every time a user began tapping. After about 15 the image was getting so white that it couldn't be seen anymore. I don't understand.
-
Can you please post a small code sample that shows the white square as a gist on github or here? Python code is easier to debug than English prose (PcietdtEp).
-
sounds like your blend mode is set to multiply... you probably want BLEND_NORMAL
-
maybe you should post a simple example that reproduces the problem.