Reputation: 12559
Here is my image display objects:
local background=display.newImage("background.png")
local buttonImage1 = display.newImage("start.jpg")
I want the image of button object to be on top of the background image. How can i do that?
EDIT: Problem Solved
I used director class and with director class you should insert your display objects in order in localGroup in order to see them.
localGroup:insert(background)
localGroup:insert(buttonImage1)
Upvotes: 0
Views: 890
Reputation: 89
By the way, if you want to know another way...
buttonImage1:toFront()
will do it.
Upvotes: 1