Figen Güngör
Figen Güngör

Reputation: 12559

How can i set my button image on top of background image in Corona?

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

Answers (1)

Matthew Mellea
Matthew Mellea

Reputation: 89

By the way, if you want to know another way...

buttonImage1:toFront()

will do it.

Upvotes: 1

Related Questions