Skip to content Skip to sidebar Skip to footer
Showing posts with the label Pygame

Duplicating A Sprite

I'm having trouble with getting new sprites to be added. I'm looking for something along th… Read more Duplicating A Sprite

Can't Hear The Sounds I Am Tring To Play With Pygame

I can't hear the sounds I am trying to play with pygame. This is my code. import pygame pygame.… Read more Can't Hear The Sounds I Am Tring To Play With Pygame

Multithreading With Pygame, Program Crashing

Hi everyone and thank you in advance for your help. I've just discovered pygame (a library for … Read more Multithreading With Pygame, Program Crashing

Use Collidelist In Class

I have created a class to create rectangles and put them in a list . I don't want them to colli… Read more Use Collidelist In Class

Python Default Argument Syntax Error

I just wrote a small text class in python for a game written using pygame and for some reason my de… Read more Python Default Argument Syntax Error

Pygame Fullscreen Mode Exit

I'm running this little program that loads images to the screen in fullscreen mode but once it … Read more Pygame Fullscreen Mode Exit

Random Systematic Movement In Pygame

I am making a Covid simulator and need my balls to move around randomly. However, I want them to st… Read more Random Systematic Movement In Pygame

Failure On Import Pygame.font

import pygame works fine for me, but import pygame.font fails with the error: ImportError: dlopen(/… Read more Failure On Import Pygame.font

Convert A Pygame Surface Into An Image?

is there a way to convert a pygame surface into a png image? rgb_content = pygame.surfarray.array2d… Read more Convert A Pygame Surface Into An Image?

Pycharm: "cannot Find Reference 'load' In 'image.py'"

I have a problem I'm working in Pycharm with Pygames and when I try to pygame.image.load() it d… Read more Pycharm: "cannot Find Reference 'load' In 'image.py'"

How To Make A Sprite Bounce Of The Edges Of The Window In Pygame

So far I have my program bouncing from left to right, but now I want to have in bounce of the walls… Read more How To Make A Sprite Bounce Of The Edges Of The Window In Pygame

A Good Way To Switch To A Menu Using Pygame

I am using PyGame to create a game, and can't figure a clean way to switch between scenes and m… Read more A Good Way To Switch To A Menu Using Pygame

How To Make Save / Load Game Functions In Pygame?

I need to make save / load game functions for my rpg. I can save the location of my player, but wha… Read more How To Make Save / Load Game Functions In Pygame?

Draw A Circle In Pygame Using Tkinter

using bits of code from another question, I embedded a pygame window in a tkinter window, I'm t… Read more Draw A Circle In Pygame Using Tkinter

Recalling Import In Module

I'm still learning python and after playing around with pygame I noticed I'm re-importing t… Read more Recalling Import In Module

Pygame Installation, No Module Named Pygame.base

I am trying to install pygame with the powershell from VS 2019 with python 3.8, I use python3 -m pi… Read more Pygame Installation, No Module Named Pygame.base

Pygame Define Different Position Order Make The Different Result

I define the different position order of my object, then I found it makes an error. I want to my b… Read more Pygame Define Different Position Order Make The Different Result

Is There A Way To Stretch The Whole Display Image To Fit A Given Resolution?

I've been using pygame to make a game recently, and have ran into a little problem... Basically… Read more Is There A Way To Stretch The Whole Display Image To Fit A Given Resolution?

How To Put A Health Bar Over The Sprite In Pygame

By the title, I'm hoping that my the player would have a health bar attached to their head. If … Read more How To Put A Health Bar Over The Sprite In Pygame

How Do I Display A Large Black Rectangle With A Moveable Transparent Circle In Pygame?

That question wasn't very clear. Essentially, I am trying to make a multi-player Pac-Man game… Read more How Do I Display A Large Black Rectangle With A Moveable Transparent Circle In Pygame?