Realtime z-order / bring to front

I have read up about handling z-order and have seen it worked out by target:toFront on a touch event

What I wanted to achieve is effectively a background and two foreground display groups. The main body and physics are handled in the middle foreground and then if an item is dropped while performing an action then via collision detection gets moved from middle display group to the new most forward foreground, made static and then happily passes in front of the other physics objects that was just controlling it.

Am I going about this the right way? [import]uid: 103970 topic_id: 18984 reply_id: 318984[/import]

This is a fine way of dealing with it; there are many ways of handling this (not that I can suggest any clearly without having a better idea of your game) but it sounds like this is working for you.

Peach :slight_smile: [import]uid: 52491 topic_id: 18984 reply_id: 73158[/import]