- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Hey guys I'm attempting to make a super mario like platform game and need help with making images move. Like instead of moving the little man, just having the background moving with the corresponding button movement. Can anyone hint at how to do this? Or is moving the little man … |
|
Hi all. Is there any way that if I give python a string, it can convert it into code? Example, say I am given this string: [CODE=python]string = "Class( 0,100 )"[/CODE] Now I want to convert it into code: [CODE=python]Class( 0,100 )[/CODE] Any ideas? Thanks. |
|
Re:
Is there a module for a camera in PyGame, because I want the camera to follow an image, thanks. |
|
Re:
[CODE]print "INSERT QUIZ INTRO" choices1(); def choices1(): print "The SNES Star Fox games ran off of/was used to advertise what advancement?" print "1: 32 Bit color" print "2: Argonaut's Super FX Chip" print "3: Voice-like sound effects" print "4: Higher Frame rates" 001();[/CODE] There's code past this but I imagine … |
|
Any one know where I can find the pygame code to create a screen where you can draw simple lines by click and dragging the mouse? I know how to create lines with the pygame.draw.line(screen, (0,0, 0), (3,200), (9, 200)) script (using that as an example), but am looking for … |
|
hi everyone! I have two files, main.py and sprite_class.py. sprite_class.py is in a separate folder called lib. here's a quick diagram: ------------------------------------ /folder engine/ main.py /folder lib/ sprite_class.py ------------------------------------ ...sprite_class.py contains a class called Sprite: [CODE] # sprite class class Sprite(): def __init__( self, start_x, start_y, image_path ): self.x = … |
|
Hi everyone. I'm having a little trouble trying to understand what argument passing really is. I know that it 'passes' arguments, but what does that actually mean and how can you use it to my advantage? ex: [CODE] def New(spam,n=1): [/CODE] so what does that actually do? |
|
Hi everyone! I am currently creating somewhat of a platformer/puzzle game in pygame and ran into a problem with creating levels. I really don't want to take the time to program collisions with the player and each platform on the game, because that would obviously take forever. I was thinking … |
|
hey everyone. i am writing a program in python w/ Tkinter and ran into a problem with padding. So, i have a Label object named DataPool_Text. when I run it (side=TOP), it goes to the top middle of the screen. I know how to use padx, but what would I … |
|
Hello all. I'm working with pygame and are trying to implement some type of server. |
|
does anyone know how to shutdown a computer on windows XP (using python of course ;) given the IP address and the computer name (probably don't need it, though)? I don't want to use os commands like os.system("shutdown -i"). Thanks in advanced! |
|
Hi everyone. I'm currently working on a Tic Tac Toe game, and I am having a little trouble with, well, I'm not even sure what to call them. They are a variable with brackets like so below. Anyway, I have this variable: [CODE]char Line_One[3] = { ' ', ' ', … |
|
Hi y'all. I'm just starting to learn HTML and just had a few questions. I was using some tutorials from w3schools.com, and I came across Event Attributes. So I have this textbox, and I want it, when clicked, to clear the the text box of it's value, and change the … |
|
Hopefully this is the correct place to post this, so here ya go. I'm learning HTML and just had a few questions. I was using some tutorials from w3schools.com, and I came across Event Attributes. So I have this textbox, and I want it, when clicked, to clear the the … |
|
hello everyone, just a quick question about pygame rotations. If i have an image, say "image.bmp", how would I zoom in on that image? Thank in advanced |
|
Sorry about the second thread, I forgot to include this on my first one. Anyways, is it possible for someone to use the "echo %text here% >> %location of file here%" command to save some text to a file in a different folder? I did it, but got a message … |
|
Hi everyone! I am making a simple chat program in batch (it doesn't use the net send command). It consist of a main DOS window that you chat with called PM, a .txt file called Log that stores what you say, and a DOS window called PM LOG that prints … |
|
I everyone! I'm having a little math trouble with a simple physics program I'm writing in python w/ pygame. If you notice in the code where it says: "((-ballSpeed[1]/4*3))", my ball on the screen just sits there and does nothing!! Whats wrong with my program? [CODE] import sys import pygame … |
|
Anyone know how I would set an image for the cursor in Pygame? |
|
So, I'm making a simple program that can edit text files. I have a text input that says "Please enter the name of the file, followed by a '.txt'. ". Although, whenever I enter a name, it will only show you the first character of what you entered. So, how … |
|
how would I tell python (using pygame code) to do an event after a certain amount of time? Would I use pygame.time.Clock()? |
|
I'm writing a gravity simulation in python and pygame, and had a quick question. Say I have an object that I can move. Lets call it "square". Then I created a line like so... [CODE] pygame.draw.line(screen, (0, 0, 0), (84, 368), (510, 368)) [/CODE] How would I tell python not … |
|
OK, so on my program, whenever I enter in incorrect selection (when I am actually running it), it goes back to the main loop and continually loops! what's wrong with it? here's the code: [CODE]/* Copyright: 2008 Author: Besktrap Date: 13/07/08 09:19 Description: a short buggy calculator I made */ … |
|
Hi everyone! I'm new here, so just letting you know that. Anyway. I'm currently writing somewhat of a game in pygame and had a few questions for anyone who would be able to help me. I have created a python program that moves and object in a window, and I … |