View Single Post
Posts: 2 | Thanked: 3 times | Joined on Dec 2008
#55
Originally Posted by ciroip View Post
I need your help people: I heavily modified the code using great PLOP's suggestions but now the clock keep crashing every 9th minutes...
I have no idea why the
x[15] a time.ctime() on the 9th minute made this expception...
Anyway, I think people can survive with a clock that crash each 9th minute....(09, 19, 29 etc)
My bad, I've overlooked the range, it loaded from 0 to 8 before ^^.

Use

numeri = [pygame.image.load(path+str(x)+".png") for x in range(0,10)]

when you load the images and it will work.
 

The Following 2 Users Say Thank You to plop For This Useful Post: