I'm trying to make a pygame game but I'm having a problem. I want when a character collects a coin, the score will change by one and the coin will disappear. I
I need to rotate a 3D scene or a character using the mouse position: for example, if I move the mouse to the right, I want to turn to the right / the character
New to pygame, and game development in general. This is my main loop and I am trying to blit just a tile selector image on top of the current tile that the mous
I was trying to put texture onto quad with this code: import pygame from pygame.locals import * from OpenGL.GL import * from OpenGL.GLU import * from PIL import
I spent the last 3 hours searching for a way to create a simple toggle button script that lets me know if a button on my Thrustmaster HOTAS has been pressed. As
I'm new to pygame, and OOP in python ( used a lot of java before) For a personal project, i'm trying to make a chess game, but I have a probl
I've created a game loop that pauses if the spacebar is pressed. The loop is pausing and unpausing as expected but the music playing in the background does not
I want to calculate the Kinetic energy and potential energy of the ball I just Spawned inside a Pymunk space. I wanted to replicate this. Where the values chang
If i try to run the example code "python3 -m pygame.examples.aliens" i get a syntax error (see code bellow). I thought that i didn't install pygame correctly bu
I've created a slots-type game based on a numpy grid but the code below is just a shortened example that demonstrates the problem The issue I'm running into is
Can I create an Android game with PyGame? Let's say I have already created some kind of simple game and it is working well on PC. Can I make a
I have a small question about placing a rectangle in pygame. When I run the code i dont see a rectangle. Does anyone knows how to fix this? im
I wanted to make a game using pygame and I started my code making the pygame window import pygame pygame.init() pygame.display.set_mode((1500, 1000)) But every
So I have made a game using Pygame, and now I want to make a executable out of it(standalone executable is preferred). So I used this to make the executable: py
Help people, I have a project created with flask and this is running in heroku, the problem is when a try to use pygame, this return an error: pygame.error: Fai
I'm trying to create a rectangle and display a video in a square inside the rectangle. The problem is that when the preview is executed, the rectangle disappear
I'm trying to create a rectangle and display a video in a square inside the rectangle. The problem is that when the preview is executed, the rectangle disappear
I know there are several questions about collisions but I can't understand how to do it, the mask of the two objects are created correctly (if I show the two re
So i've been working lately on some 2D game for my school's final project... And i needed to make my player or the controlled object so it doesn't go off of the
I have code to move a rectangle in pygame from left to right, up and down. But I want to move my rectangle around the screen that I created.. can someone help m