Sorry, made a duplicate post as I didn't know sure that it was submitted 
(until I noticed that it had a delay!). 

I know that's an option, but then my entity can't have a seperate Position 
component and I'd need to update both. I'd like to avoid this (not a great 
issue but was curious if it would be possible...)

Op woensdag 22 mei 2013 11:12:50 UTC+2 schreef Juan J. Martínez het 
volgende:
>
> On 22/05/13 09:15, Busata wrote: 
> > [...] 
> > 
> > I.e. Anyone has a suggestion on how to split Sprite and its position 
> > while still being able to add it to the batch? 
> > 
>
> Python uses references so you can have a Sprite in a batch and still 
> keep it in a different place (ie. a list of entities). When you update 
> the position of the Sprite in the list, the Bath will draw it in the new 
> position. 
>
> I don't know if there's a better way, but that is how I would do it :) 
>
> Regards, 
>
> Juan 
>
>

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


Reply via email to