On Sat, Aug 18, 2012 at 5:36 PM, Nitneroc <[email protected]> wrote:

> Ok, I see now this only works because the image is the only one used at
> the moment, and I'd get to see other images in the atlas (I guess ?) with
> such a code, but there has to be a workaround.
> --
>
>

You can load an image as a single texture with

    pic = pyglet.image.load('fire.png',
file=pyglet.resource.file('fire.png'))
    texture = pic.get_texture()

Another way is to change the texcoords recalculation to account for the
offset that an image in an atlas has.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" 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/cocos-discuss?hl=en.

Reply via email to