I’m trying to create an entity with multiple images, i’m using GraphicList to add the images, i was wondering if there is a way to specify layers for images, what i want to do is that i want to place some images on top of others ?
Different Image Layers In Graphiclist
Copying
(Martí Angelats i Ribera)
#2
I’m not 100% sure about it, but i think the firsts you add they are the ones in the bottom (becouse it uses a Vector.<Graphic>
and then a for each
wich should respect the order) (they are rendered first and on top of them the next one).
pgil
(Ben Pettengill)
#3
GraphicLists are drawn so that the first sprite added will be behind the next. So the last sprite added will appear in front of everything else on the screen.
Another way of saying it: the first sprite added will appear farthest from the viewer, and the last sprite added will appear the closest.
AbouElassad
(Zouhair Elamrani Abou Elassad)
#4
Thank you, now i get it, that last graphic added will be on the top (closer to the viewer) ^^
Copying
(Martí Angelats i Ribera)
#5
Yup. I wrote that fast and wrongly. Sorry. (I edit it for future serches)