Do I have a z-order problem?

BlitzMax Forums/BlitzMax Programming/Do I have a z-order problem?

The 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.

Place all your objects into a linked list when you create them.
whenever you click on an object, move it to the end of the linked list.
when drawing all your objects, loop through the list from front to back ensuring that the picked image gets drawn last.