My button is not appearing above the background. Without the background it shows up perfectly, but with it, it doesn’t work. Here is my code:
local ui = require(“ui”)
local buttonHandler = function(event)
end
local playbutton = ui.newButton{
default = “buttonPurple.png”,
over = “buttonPurpleOver.png”,
onEvent = buttonHandler,
text = “Play”,
id = “play”,
size = 20,
emboss = true
}
playbutton.x = display.contentWidth/2
playbutton.y = display.contentHeight/1.5
local background = display.newImage(“whitebackground.png”)
background.xScale = 1.5
background.yScale = 5
Also, in the terminal output, it says everything is fine. What is going on? [import]uid: 30901 topic_id: 5737 reply_id: 305737[/import]