Hi all,

In pygame.sprite.LayeredUpdate.add documentation it says

"If the sprite(s) have an attribute layer then that is used for the layer.
If **kwargs contains 'layer' then the sprite(s) will be added to that
argument (overriding the sprite layer attribute). If neither is passed then
the sprite(s) will be added to the default layer."

This implies it relies on sprite.layer. But by looking at the source I saw
if you want to affect which layer your sprite will get added to, you have
to set sprite._layer before calling add(). So the documentation and the
code doesn't match.

Not so much a bug; more of a clarification.

Sincerely,
Jeffrey

-- 

      Jeffrey Kleykamp

Reply via email to