Y-Sort of multiple FlxTypedGroups?

15 views
Skip to first unread message

Rich Walter

unread,
Feb 10, 2016, 5:00:46 PM2/10/16
to HaxeFlixel
Hi, was wondering if it is possible to Y-Sort (or any sort) across multiple FlxTypedGroups? For instance, I have:

enemyBullets:FlxTypedGroup<FlxSprite>
playerBullets:FlxTypedGroup<FlxSprite>
entities:FlxTypedGroup<FlxSprite>

etc...

And I want to properly display depth based on their y position. Easy to do with just one group, but how to sort across all the groups? Do I have to add each group into a "master group" and just sort on that?

Thanks,
Rich
Reply all
Reply to author
Forward
0 new messages