Hi,

still new to pyglet. I come from flash/as3 world.
I am not sure how to use group.

In AS3, there is Sprite.
Sprite can be moved (x, y), ...
But we can also add Sprites to a Sprite.

That means that a Sprite can contain other Sprites, and it's own
graphics.
then, if we move that can of Sprite, like my_sprite.x += 10, it will
move all the sprites it contains.

It's not hard to do it in python (build a class that contain a list of
sprites, and a function x with @property ; then, shift the sprites).

is it the correct way to do it with pyglet ?

thanks,;
Philippe

-- 
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