Hi, I'm trying to create a Sprite with an Animation created by a sequence of AnimationFrame objects but I get this error
'AnimationFrame' object has no attribute 'get_texture' I'm following the documentation example (http://www.pyglet.org/doc/programming_guide/animations.html): animation = pyglet.image.load_animation('animation.gif') bin = pyglet.image.TextureBin() animation.add_to_texture_bin(bin) sprite = pyglet.sprite.Sprite(animation) and there is my code: #AnimUtils.loadFramesFromDirectory(path) creates a list of AnimatedSprite #loading the image files contained in a directory anim = Animation.from_image_sequence( AnimUtils.loadFramesFromDirectory(path), 1000, loop ) sprite = Sprite(anim) I have to add the frames to the TextureBin or is it optional? suggestions? thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
