On Thu, Mar 4, 2010 at 11:57 PM, Chris <[email protected]> wrote:

> hey so I've searched around a little bit and i cant find an answer
> exactly to my n00b question. just started learning how to code in
> python but i know this is possible. so here goes:
>
> in python/pyglet how can i reference a GIF file frame (either frames
> from an already existing animation OR a grid/sprite sheet i already
> made) i'll have multiple images that will be running at once so this
> process needs to work for all.
> i know about batches, i know about image grids, i know about
> textureregions, bins and atlases. none of the documentation i've found
> has any specific implementation on how to :
>
> 1. reference an individual frame to display (to include input from the
> user such as a keypress) out of a gif file
> 2. once a new frame needs to be shown, the previous one removed from
> the environment
> 3. stay away from lists, meaning i have aLOT of animations, i dont
> want to create 10,000 lines just defining each frame, i want to have
> one gif per animation and only show a singular frame at a time WHEN
> INPUT IS RECIEVED.
>
> an actual EXAMPLE is really what i need. i found something close on
> these forums but its not complete.
> thanks for any help/input guys! still learning.


This might be along the lines of what you are looking for:
http://swiftcoder.wordpress.com/2009/04/17/enhanced-animation-code-for-pyglet/



-- 
Tristam MacDonald
http://swiftcoder.wordpress.com/

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to