[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Sprite to variable



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)