Re: [pygame] Firing bullets

2007-04-12 Thread Charles Christie
I just noticed something... You have an interval variable that is the number of ticks since the last frame. How would I pass the number of ticks since the last frame to the equation? I know I have to use pygame.time.get_ticks() somewhere, but I don't see it in your code anywhere aside from the

Re: [pygame] Firing bullets

2007-04-12 Thread Greg Ewing
Charles Christie wrote: I just noticed something... You have an interval variable that is the number of ticks since the last frame. How would I pass the number of ticks since the last frame to the equation? In my games, I just set the pygame clock to produce an event every so many

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread James Paige
On Thu, Apr 12, 2007 at 08:38:28PM -0500, Lamonte(Scheols/Demonic) wrote: Ok I'm just trying to get un-noob with pygame and python it self. Alright I was reading on a tutorial from the pygame site located here: http://www.pygame.org/docs/tut/intro/intro.html So I'm trying to find

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread Bob the Hamster
But it doesn't work. Never say these words as your only explanation when you post code. Say But when I try running it, I get an error message that says blahblahblah and I don't understand what that means or But when I try to run it (detailed description) happens or but when I try to run

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread Richard Jones
On Fri, 13 Apr 2007, [EMAIL PROTECTED] wrote: Alright how do you open a blank window. I tried the following: import pygame as D_ENGINE size = width, height = 320, 240 speed = [2, 2] black = 0, 0, 0 screen = D_ENGINE.display.set_mode(size) while 1: for

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread python
On Fri, 13 Apr 2007, [EMAIL PROTECTED] wrote: Alright how do you open a blank window. I tried the following: import pygame as D_ENGINE size = width, height = 320, 240 speed = [2, 2] black = 0, 0, 0 screen = D_ENGINE.display.set_mode(size) while 1: for

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread python
But it doesn't work. Never say these words as your only explanation when you post code. Say But when I try running it, I get an error message that says blahblahblah and I don't understand what that means or But when I try to run it (detailed description) happens or but when I try to

RE: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread paris
Hi, I can't run the code at the moment - on a machine w/o pygame but... launch a cmd window and run the program from there. e.g. start-run-cmd that way the window will stay open and you can see the error. Best, p Original Message Subject: Re: [pygame] [PYGAME] Noob Help.

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread python
On Fri, 13 Apr 2007, [EMAIL PROTECTED] wrote: It says invalid syntax then a carrt(^) points up to try: If your source is indented in the same manner as the mail you're posting then you've got syntax errors due to the indentation of your source. Have you run through the python tutorial? If

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread Richard Jones
On Fri, 13 Apr 2007, [EMAIL PROTECTED] wrote: I think I know the problem, its the text pad I'm using. I have NotePad++ anyone recommend any besides Dr Python (atm I can't use it+ its a little slow on this comp). http://wiki.python.org/moin/PythonEditors (Google search python editor windows)

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread Ryan Charpentier
Python comes with a fair IDE called Idle. It is pretty good if you just want to run some python code quick, but i'm not a big fan of the debugger.

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread python
On Fri, 13 Apr 2007, [EMAIL PROTECTED] wrote: I think I know the problem, its the text pad I'm using. I have NotePad++ anyone recommend any besides Dr Python (atm I can't use it+ its a little slow on this comp). http://wiki.python.org/moin/PythonEditors (Google search python editor

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread Richard Jones
On Fri, 13 Apr 2007, [EMAIL PROTECTED] wrote: Alright I got an error saying: Syntax Error Line 6: pygame.init() Script: import sys import pygame from pygame.locals import * pygame.init() Indeed this is a syntax error - the code is indented unnecessarily and invalidly.

Re: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread python
On Fri, 13 Apr 2007, [EMAIL PROTECTED] wrote: Alright I got an error saying: Syntax Error Line 6: pygame.init() Script: import sys import pygame from pygame.locals import * pygame.init() Indeed this is a syntax error - the code is indented unnecessarily and invalidly.