hmm... the depth does not seem to work when put next to a sprite from a 
separate batch. I suppose that makes sense though... I do appreciate the 
help by the way

On Monday, November 2, 2015 at 7:06:37 PM UTC, [email protected] wrote:
>
> You could, yes. Though the existing sprite class (if you plan on 
> subclassing it) would require abit more tweaking than just the 
> _update_position function, you'd also need to adjust the 
> _create_vertex_list() function. I've taken the liberty of modifying the 
> built in sprite class to take a float z coordinate, so you can set its z 
> coord by writing:
>
> self.sprite.z = 0.5
>
> or
>
> self.sprite.position = 64, 64, 0.5
>
> It doesn't quite seem to play nice with the previous vertex list examples 
> when in the same batch together, so you may need to put them into a 
> separate batch.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to