Re: [pygame] Re: collidelist Problem, indices

2007-08-22 Thread Laura Creighton
In a message of Wed, 22 Aug 2007 09:10:07 PDT, "Ian Mallett" writes: >--=_Part_77788_14720920.1187799007217 >Content-Type: text/plain; charset=ISO-8859-1 >Content-Transfer-Encoding: 7bit >Content-Disposition: inline > >On 8/20/07, C. Schildt <[EMAIL PROTECTED]> wrote: >> >> Ian Mallett <[EMAIL

Re: [pygame] Re: collidelist Problem, indices

2007-08-22 Thread Ian Mallett
On 8/20/07, C. Schildt <[EMAIL PROTECTED]> wrote: > > Ian Mallett <[EMAIL PROTECTED]> writes: > > > > > Well, your index must be an integer, but that wouldn't cause that > error...But > aside from that, an index too large is the only thing that causes that > problem. > Could you at least try it?Ian

[pygame] Re: collidelist Problem, indices

2007-08-20 Thread C . Schildt
Ian Mallett <[EMAIL PROTECTED]> writes: > > Well, your index must be an integer, but that wouldn't cause that error...But aside from that, an index too large is the only thing that causes that problem. Could you at least try it?Ian Well if i do so, every strange effect stops, but, the wrong do

Re: [pygame] Re: collidelist Problem, indices

2007-08-19 Thread Ian Mallett
Well, your index must be an integer, but that wouldn't cause that error... But aside from that, an index too large is the only thing that causes that problem. Could you at least try it? Ian

[pygame] Re: collidelist Problem, indices

2007-08-19 Thread C . Schildt
Ian Mallett <[EMAIL PROTECTED]> writes: > > Not sure about this... try "self.i-1" for the index.In case you didn't know, here's why:my_array = [100, 200, 300, 400]my_array[0] = 100my_array[1] = 200my_array[2] = 300my_array[3] = 400 > good luck!Ian no that does not work, if i use a print self.i