Flixel Z-Order DragDrop

by pythong
Anyone using Flixel? This is just a small example how to do Drag&Drop and z-Ordering with Flixel (not much of a game, well, it's a warmup, right?)

By modifying the FlxObject class a bit, I could add a sorting functionality, which is important when you want to do a bit of drag/drop and mouse interaction. Bonus: a few classes to create simple bordered FlxSprites or FlxSprites with shadows or highlights, and a class for the checkered background

The colors are randomized with each start

Comments2

01010111
0101011119 Aug 2012, 16:20
Thanks for this! I've been meaning to look more into Z-Ordering things, so this will be a great jumping off point!
pythongauthor19 Aug 2012, 18:42
I'm glad I could help :)

Other games by @pythong

Found a bug?
Tell us on Discord