[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:49:16 -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:49:25 -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=QyWpW2aqc/OuJGpq5zac2cw8Dj+txHIRSnVnfWM9R4J2NxWSY1DKSJ/fgKF525U3QTQHRVQg4zbGonAyTEIQwQmS8lHuzvWi9uz/Ec0LHjBD7Zf4pUmqFSyl9TG+flA4G99haG2zJOlT9J6+duKR5KtTGP6ITVTNjrnIR2zFxWM=
- 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=Nry7txEj1LvSvGSEAQ98213AVN+o165BphG+0QlsztS6DKf8MFbPwxK/I2z5B1FR7FrBqQm81vUOXhu4m0s3eoIVNtjluEumG6HcfsqCU7Goe9V2vDu/Osh4DzY2iIpAgxrbWsfff0eqLVzFucRa71Ns6sfbfdD/T6SHkIgC24Q=
- In-reply-to: <4613B73C.1090902@speakeasy.net>
- References: <4613B5DA.2040909@speakeasy.net> <7e3eab2c0704040729y61c74214n856f505f945a3026@mail.gmail.com> <4613B73C.1090902@speakeasy.net>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Okay, have you checked out the pygame tutorials? I find piman's tutorial very good: http://www.sacredchao.net/~piman/writing/sprite-tutorial.shtml
On 4/4/07, Samuel Mankins <waterflight@xxxxxxxxxxxxx> wrote:
Jason Massey wrote:
> 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
> <mailto: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
>
>
How would I do that?
(I'm sorry, my pygame and python experience is pretty small)