On, Thu Jan 29, 2009, Aaron Maupin wrote: > Sebastián Gurin wrote: > > > *) LAYERS - z-index in sprites. I think i've understanded the concepts > > of sprites, rect, surface well but I can't find a way of managing > > sprite layers. I need to 1) i need to set the zIndex attribute for > > sprites so when they overlap with another one is showed on top of the > > other. I also need 2) a way of know the top most sprite that receives > > a mouse event. I would like to know if this stuff is already present > > in pygame api, or if I have to create/simulate it by hand. > > You have to do it all by hand. No, the new LayeredGroup class introduced in 1.8.x can deal with that. Regards Marcus
Attachment:
pgpVqS9aoaNqT.pgp
Description: PGP signature