Member Avatar
This 'sticky' thread is for working examples of Python GUI code. Note that wxPython examples have their own sticky. Please use comments in your code to help the reader. The example code should be usable as a template, so folks get a feel for the toolkit and can use those …
by vegaseat 1,720 in Software Development ()
Member Avatar
A short example of Pygame showing an image with a known internet url.
by vegaseat 1,720 in Software Development ()
Member Avatar
A very basic pygame sprite example. Moving a sprite with the arrow keys, could be the start of a great space game.
by vegaseat 1,720 in Software Development ()
Member Avatar
This simple code shows how to write text with a given font, font size and color using the module pygame ...
by vegaseat 1,720 in Software Development ()
Member Avatar
Dear all, Currently I am facing the problem on getting the resources for getting Tkinter and pygame to work together. Sadly, I do not have any leads til now(Which worries me alot!! :( ) so I hope the people here can point me to the correct direction. So basically I …
by JonKho in Software Development ()
Member Avatar
after importing pygame, when we convert an image an assign it to a variable, what is the type of that variable?
by aanchal_1 in Software Development ()
Member Avatar
Hello, Simple question: how can I command pgs4a to use android-10 (2.2.3) instead of always using android-8 (2.2)? I've tried using the target commands, but to no avail, unless I have missing files? I have my game set up and built, i've successfully created 2.2 apk's but cannot figure out …
by ben.juarez.773 in Software Development ()
Member Avatar
Hello! I am looking for some help, and have provided the code. I'm just trying to do some simple stuff. I'm trying to create a simple game without using classes (but using lists). What I'm trying to do is create collision detection among list objects ("bullets" and "baddies"), as you'll …
by ben.juarez.773 in Software Development ()
Member Avatar
Hi, I am wondering if there is any easy way to up the frame rate of a pygame program. For example locking the frame rate? I don't know. Thanks in advance! 26BM
by 26bm in Software Development ()
Member Avatar
Heading Here Trying to add a webcam fee to a panel inside of my wxpython GUI. I have buttons on the left currently, and a black panel on the right. I'm confused as to how to add a webcam feed to that panel? here is the code being used to …
by theUserMan in Software Development ()
Member Avatar
Hello everyone! I have made a game intended for the Rasberry pi in python. It is called Pi Blocks, but all of my friends with windows want to play it, so I've been trying and trying to get the game into an exectutable format, but nothing seems to work! I've …
by sam.tubb.75 in Software Development ()
Member Avatar
First of all, I should say I'm brand new to PyGame and am pretty new to advanced Python. I'm trying to make a side-scrolling game but just making a sprite move back and forth with keyboard input is proving to be a problem. It appears that the loop is running …
by wrathofmobius in Software Development ()
Member Avatar
Hi, I'm wondering if anybody knows of a python compiler to make an exe with. I have tries cx_freeze and py2exe so far, but I haven't been able to get it to work. If anyone has any good python to exe compilers please post here. Thanks, 26bm
by 26bm in Software Development ()
Member Avatar
im trying to get this script to draw a line from the center of the rectangle to the mouse BUT i only want it to draw about 10 pixels out. how can i find that point that is 10 pixels(or points) out? code so far:
by natehome in Software Development ()
Member Avatar
Hi, I am tring to make a custom cursor in pygame and I would like to use a XBM file to do so. I am wondering if somebody could please give me an example on how to create a XBM cursor, how to load it into pygame, and how to …
by 26bm in Software Development ()
Member Avatar
Just a code sample that allows you to play your midi or mp3 music files with Python and module pygame.
by vegaseat 1,720 in Software Development ()
Member Avatar
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 …
by Necrozze in Software Development ()
Member Avatar
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 …
by Necrozze in Software Development ()
Member Avatar
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 …
by Necrozze in Software Development ()
Member Avatar
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: The player doesn't recongnize when it's not on a platform and because of this it won't fall down. I've narrowed it …
by TempoGnome in Software Development ()
Member Avatar
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 …
by Necrozze in Software Development ()
Member Avatar
Anybody out there that used Python on an Android system? Something like the subset on
by Lardmeister 461 in Software Development ()
Member Avatar
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.
by vegaseat 1,720 in Software Development ()
Member Avatar
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: However right now I'm having a …
by nnekymoe in Software Development ()
Member Avatar
yesterday one of my friend tell me to make RTS engine in pygame......I know basic things which is used to make RTS Like But only 1 thing i still cant figure out....Which is path finding.....I read all articles which is on the net...... but still cant figure it out.... Any …
by piyush3dxyz in Game Development ()
Member Avatar
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 …
by luck12 in Software Development ()
Member Avatar
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 …
by natehome in Software Development ()
Member Avatar
Hi i just started learning pygame and i was trying to run a simple block of code but an error keeps popping up: when on running i get this error : i have the python 2.7.3 ver and pygame-1.9.1.win32-py2.7. please let me know cause being stuck at a simple code …
by yogesh.sdot in Software Development ()
Member Avatar
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 …
by sgeep in Software Development ()
Member Avatar
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 …
by Dann0 in Game Development ()