[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] collidelist Problem, indices
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] collidelist Problem, indices
- From: "Ian Mallett" <geometrian@xxxxxxxxx>
- Date: Sun, 19 Aug 2007 14:29:35 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 19 Aug 2007 17:29:44 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=masxZPPAzZeTSBPZ604L7HJHlDWF1TdlT6+Uk6OUkLwOHOIYkfkeATSqleEpaoubgWF4KaQExRi50EJwltchUUrkyJwFXtApsXRCKAsAPCS3MiXvqSO1jtsAnaitCmp+5bfTrEoZymB+2JgP5Yt5wQ5J7H+C9c/bZl/ck1cCvxM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=EwNzHuvDjnty3Y3cX3bPVwdCuCGF1rJ9pfB7Lyw9nOPM++5wxlavp+RR8kMqRvBhFW3O6j24DgI1jdg4GMCTt3yF4M/VXz1H4Rcjv/YROSeH2IQUK/o5c/3mUKXKxLCVsIP8vqEj3DF9ZD6jhcRgjtj6zAm/D6IJWiMvNdGAVes=
- In-reply-to: <loom.20070819T231415-502@xxxxxxxxxxxxxx>
- References: <loom.20070819T231415-502@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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] = 100
my_array[1] = 200
my_array[2] = 300
my_array[3] = 400
good luck!
Ian