95 Topics

Member Avatar for
Member Avatar for vegaseat

Just a code sample that allows you to play your midi or mp3 music files with Python and module pygame.

4
2K
Member Avatar for Necrozze

I have a qucik question for you guys. Is there a way to change the taskbar icon? Im done with my game and im gonna show it in class on tuesday 14 and I just thought it would be cool to have an icon that represents the game and not …

0
173
Member Avatar for Necrozze

I have a serious problem with my game right now, after each kill I get the game starts lagging more and more. I thought it was because he was drawing the same thing twice and stuff and went trough some functions that was useless. But I cleaned it up as …

Member Avatar for Necrozze
0
1K
Member Avatar for Necrozze

Im making a 2D platformer-ish shooter its really simple and not much effort put in it, it is my first game Im making in python and its for a school project and needs to be finnised really soon. Everything is working just fine but Im having problem with some collision …

Member Avatar for Lucaci Andrew
0
550
Member Avatar for TempoGnome

Hi! I've been making this game for fun and have run into a few problems, a friend recommended me to ask you guys for help. I have three problems: 1. The player doesn't recongnize when it's not on a platform and because of this it won't fall down. I've narrowed …

Member Avatar for zjtpjs4
0
338
Member Avatar for Necrozze

Im doing this game for school and it's supposed to be finished real soon and then of course al the problems start coming up, the game now crashes, sometimes after a few seconds and sometimes directly on start. Don't really know why, a thought is that its doing to much …

Member Avatar for Necrozze
0
382
Member Avatar for Lardmeister

Anybody out there that used Python on an Android system? Something like the subset on http://pygame.renpy.org/

Member Avatar for M.S.
0
217
Member Avatar for vegaseat

If you draw shapes that are closely spaced and shifted, you can create interesting interference patterns, so called moire patterns. Here is an example using the Python module PyGame to do the drawing.

2
723
Member Avatar for nnekymoe

![Spatial_Recall_2](/attachments/large/4/Spatial_Recall_2.png "Spatial_Recall_2") I'm new to pygame and currently I'm working on creating a memory game where the computer displays boxes at random positions for like a second and then the user has to click on where he/she thinks those boxes are. It's kind of like this: [Click Here](http://www.lumosity.com/brain-games/memory-games/memory-matrix) However right …

0
152
Member Avatar for piyush3dxyz

yesterday one of my friend tell me to make RTS engine in pygame......I know basic things which is used to make RTS Like 1. Unit selection 2. Unit moving 3. Resource management But only 1 thing i still cant figure out....Which is path finding.....I read all articles which is on …

Member Avatar for yoni0505
0
120
Member Avatar for luck12

I am trying to add collision detection to this simple game, but I am a little lost on where to begin. I know I need to use rects to do this but I am struggling to find out what I need to code to make this work. Any pseudocode or …

Member Avatar for luck12
0
1K
Member Avatar for natehome

so im trying to make a very basic multiplayer game that gets a players x y from a server then displays the player. the script works fine when there is only one user in the database but when more users are added the script wont display the right player. i …

Member Avatar for christopher.j.burnham
0
583
Member Avatar for yogesh.sdot

Hi i just started learning pygame and i was trying to run a simple block of code but an error keeps popping up: import pygame from pygame.locals import * screen = pygame.display.set_mode((640, 400)) when on running i get this error : module 'pygame' from 'C:/Python27/Files\pygame.pyc'> Traceback (most recent call last): …

Member Avatar for vegaseat
0
221
Member Avatar for sgeep

Hey guys, I've been working on a project recently. It's pretty simple and a few friends helped me out with it, but I wanna try to improve it a little bit. I'm trying to add a sound file whenever a player wins/loses. Being brand new to Pygame, I'm not completely …

Member Avatar for vegaseat
0
313
Member Avatar for Dann0

Hey guys, I'm trying to make an AI character perform a pattern movement when a certain action occurs rather than have him do it all the time. I call two different methods, one to move him left, then move him right, the problem is the first method is still active …

Member Avatar for nmaillet
0
175
Member Avatar for blackarchan

I have a problem i wrote a code and copyed some code but now my sprite dosent move anymore....and i dont know why # Import a library functions called 'pygame' import pygame from pygame.locals import * # Initialize the game engine pygame.init() # Define some colors black = (0, 0, …

0
145
Member Avatar for sandorlev

Hey guys! I've started writing a 2d platformer game some days ago, and I'm really enthusiastic about it, but I already failed to live up to my own expectations: I just cannot possibly think of a way I could make my character jump. I used the MVC desing is why, …

Member Avatar for 3e0jUn
1
339
Member Avatar for ThePythonNoob

Hi, I have made a square that will move but there are some bugs in the movement. I can't find anything wrong with the logic which is why I need help ;) You have to press left and right to move the square. The problems with the movement are: 1: …

Member Avatar for ThePythonNoob
0
3K
Member Avatar for blackarchan

I want to modify the sky to be grey but i want to be time gap between the two...but i dont know how to do it # Import a library functions called 'pygame' import pygame # Initialize the game engine pygame.init() # Define some colors black = (0, 0, 0) …

Member Avatar for peterparker
0
135
Member Avatar for natehome

ive been working on this script as a project, and when i run it and click on the button to sleep(its going to be an rpg game) it loops and sends the command a bunch of times through the function. [CODE] import sys, random, time, pygame from pygame.locals import * …

Member Avatar for ret801
0
240
Member Avatar for natehome

im working on a tron game with pygame and i cant figure out how to make my tail that the player's car makes disappear after somany pixels. i want the tail to start shortening itself after like 500 pixels. if you can, can you post the full code edited (im …

Member Avatar for natehome
0
1K
Member Avatar for RLS0812

While correcting errors in someone else's code, I decided to completely rewrite the original script, and improve upon it. This is the basic code for making 3D arrays using dictionaries. [code] ar = { (x,y,z):0 # creating the array for x in range(3) for y in range (3) for z …

Member Avatar for vegaseat
0
262
Member Avatar for natehome

can someone help me make my code more simple. i uploaded the source to my website in a zip file with all the images because i used pygame and if you want to test it you will need the images. you can download everything here [url]http://2nh.co/Tk[/url] or here is the …

Member Avatar for natehome
0
291
Member Avatar for natehome

Hello, im currently taking a python programming class at my high school and we have an assignment to create a falling sand type game using pygame. im totally lost on how to start could someone please help me get started. if you dont know what the falling sand game is …

1
92
Member Avatar for sjgood

I need help with two things.... 1. I would like to lower the speed of the snake. 2. I want to make the screen, snake, and food bigger. I really need to change the speed. The 2nd thing is just something extra. But, I've tried a bunch of little things …

0
98
Member Avatar for pygame

We are very excited to announce the launch of [URL="http://www.pygamezine.com/"]PyGameZine[/URL]! PyGameZine issue 0 is chock full of articles about pygame, and interviews with people using pygame. It was inspired by the magazines that people used to type code out of into their comodore 64s, or z80 spectrums plugged into their …

0
74
Member Avatar for Joeflims

Hello, kind citizens of DaniWeb! I beg your assistance in the solution of my problem! I was trying to create a simple audio player using Tkinter and pygame, pygame being the best library that included audio playback I could find (by the way, DO NOT USE SNACK!!). Anyway, I was …

Member Avatar for Joeflims
0
179
Member Avatar for HelloPeople1

Hi We are high school students working on a final project for our course. We are making a top down shooter type game using pygame (its kind of like boxhead), and have made made all of our game except for the ai. We really need some help with this, so …

Member Avatar for raptr_dflo
0
312
Member Avatar for ehud07

Hey guys, I'm new to pygame, and working on a simple educational worm game project. The idea is to display a math problem every time the worm hits the apple, and then have the student answer that math question. I can't figure out a way to get the keyboard inputs …

Member Avatar for matthewkeating
0
162
Member Avatar for HelloPeople1

Hi guys I'm writing a top down shooter game in pygame and wanted to use sprites for my object. I got a character sprite working fairly well except I have two problems. 1. When I rotate my character the point of rotation is changing. This causes a uneven rotation in …

0
102

The End.