enter image description hereI would like to display transparent text on a surface that is sized based on the length of the text. The problem is that the text has a black background even though “None” is specified as the background in the “render” command. I tried to apply the solutions given for questions similar to mine but they didn’t
I am teaching myself pygame and am looking at making my character able to rotate and then move in the direction they are facing. I can do the rotation but cannot get the character to move in the direction the image is then facing. The code is on Trinket HERE Answer Rotate the player around its center (see How do
How do I make entities take damage with colors? I made a game with enemies shooting blue lasers and I want the player to take damage. And the player shoots a red laser. Upon detecting colors, I want a certain statement to be true. That would lower an entity’s health by one. If color collision is a thing, it can
This question already has an answer here: How to make a character jump in Pygame? (1 answer) Closed last year. I’m confused why my sprite is not moving while jumping. I’ve checked several times and changed my code over and over with no luck. My code is below and contains 3 pages, first contain the main loop, second contain the
I am having an issue with PyGame i can’t resolve. So: my idea is that I have a map I can zoom in/out on. zooming in works fine. But zooming out shows that the rest of the picture got deleted and only the part of the image that was previously visible on the window exists now. This is my code:
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I am working on a game in pygame and I published some of my previous games on itch.io. When I am loading image I used
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I am making a game with Pygame where there are going to be many different screens. I am making a class called Screen that will
In a pyGame application, I would like to render resolution-free GUI widgets described in SVG. How can I achieve this? (I like the OCEMP GUI toolkit but it seems to be bitmap dependent for its rendering) Answer This is a complete example which combines hints by other people here. It should render a file called test.svg from the current directory.