Thursday, 29 August 2013

AS3 depth sorting with extras

AS3 depth sorting with extras

I got an issue recently with depth sorting in my program. Basically, I
sort on every frame. The sort should watch the "depth" which is actually
the scaleX and scaleY (they're always the same so I'm just watching the
scaleX), so those elements which has bigger scaleX should be above of
those which has lower but also check the y value and then sort. In one
word: sort on scaleX then sort on Y. Any suggestions how could I write
such sorting function?

No comments:

Post a Comment