Keep the previous results of your sort and then you only have to test each adjacent object against its neighbors in the list to see if they need to switch positions. Much faster than doing a fresh sort every frame.
Side-scrolling beat 'em up
BlitzMax Forums/BlitzMax Beginners Area/Side-scrolling beat 'em upThe forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.