[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Sprite to variable
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Sprite to variable
- From: "Jason Massey" <jason.massey@xxxxxxxxx>
- Date: Wed, 4 Apr 2007 09:29:46 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Wed, 04 Apr 2007 10:29:56 -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=E8yNYtaWlwOvxGzRczRSMzhQGfAgCdDBU7L9/e4HzSt5IQ7t2FhD0yzub1qAC4hmq4tuK/d9VMkdi70Dvqpj84ImNRHFbcDPU/a4o6UQh/0OJwUylk0wbwjrTyNHrhGzDslLRibd1F3f7EtOCVupx3dCwepMugac7k8sJzE6+t4=
- 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=DNQCkIvLaSphVhpUAA8LH3m84vGccMQGpKvLG4nND8h+LTRXs2ABBrKbxYR4z/hGU6RNZ7/ZeCTI3ixeDADZXp54740rz2tUwkP+39Fp3BjZF5e3dB3pZ2nEHWfahM18HxFNPq84sAUZLP0xb+X9yLczGaZ3LqPijuG1WTKhPnA=
- In-reply-to: <4613B5DA.2040909@speakeasy.net>
- References: <4613B5DA.2040909@speakeasy.net>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
What about a dictionary of sprites? A lot safer and more flexible option than defining variable names on the fly.
On 4/4/07, Samuel Mankins <
waterflight@xxxxxxxxxxxxx> wrote:Hello,
Does anyone know how I can create a sprite and then set it to a variable
name? If not, thanks anyway.
-Skizzaltix