Re: [pygame] Delay Between iterations

2012-01-13 Thread ANKUR AGGARWAL
Hey Nate I applied your solution and it worked for me :) Thanks a lot :) Thanks to everybody else too :) Regards Ankur Aggarwal On Fri, Jan 13, 2012 at 2:15 AM, Zack Baker zbaker1...@gmail.com wrote: Sorry nevermind. Saw your next email On Jan 12, 2012, at 12:35 PM, ANKUR AGGARWAL wrote:

[pygame] Delay Between iterations

2012-01-12 Thread ANKUR AGGARWAL
import pygame from pygame.locals import * import random pygame.init() screen=pygame.display.set_mode((640,480),0,24) pygame.display.set_caption(Hit The Stone) background=pygame.Surface(screen.get_size()) background=background.convert() screen.blit(background,(0,0)) class

Re: [pygame] Delay Between iterations

2012-01-12 Thread Zack Baker
Hey could you add a zip of the pictures, i would be greatful On Jan 12, 2012, at 1:10 PM, Henrique Nakashima wrote: Inside the while 1 loop, add a call to clock.tick(60). This will prevent the loop from running more than once every 1/60 second. On Thu, Jan 12, 2012 at 15:35, ANKUR AGGARWAL

Re: [pygame] Delay Between iterations

2012-01-12 Thread Zack Baker
Sorry nevermind. Saw your next email On Jan 12, 2012, at 12:35 PM, ANKUR AGGARWAL wrote: In the last code provided I messed up the Bullet Class Code. Apologies for that. Below is my code : import pygame from pygame.locals import * import random import time pygame.init()