layering help

I am currently having trouble with some buttons in the game I am working on. These buttons are behind the background, but the group decided it would be better to put them in front of the background. The problem is the buttons are not appearing in front. We have tried toBack for the background and toFront for the buttons and also moved the background to the top of the code but nothing is working. I can post some code if needed. Any help is appreciated thanks! [import]uid: 94237 topic_id: 20040 reply_id: 320040[/import]

Code would be great, but as simple advice, you can always move something to the front of the group by just re-inserting it into the group.

local group = display.newGroup() group:insert(button1) group:insert(bgWindow) -- now bgWindow is overlapping button1 group:insert(button1) -- now button1 is overlapping bgWindow

Sometimes bugs in terms of which is at the front and which is at the back are caused by having multiple group:insert’s - if you have a function that does insert but main.lua or something also does it, that order is obviously going to get jumbled! :slight_smile: [import]uid: 41884 topic_id: 20040 reply_id: 78224[/import]

As richard said, some code would be useful here - I’m sure we can help you figure this out!

Peach :slight_smile: [import]uid: 52491 topic_id: 20040 reply_id: 78241[/import]

We figured out the problem. It wasn’t a coding problem it was a problem between platforms. Thanks for helping [import]uid: 94237 topic_id: 20040 reply_id: 79943[/import]