Hi, I want to create an app with a background image, four buttons, and color changing when buttons are activated. How would I go about doing this? My biggest problem is that I can’t figure out how to center or properly format an image to be the background behind the buttons.
Here is some code that I always use in my projects to speed things up a bit:
centerX = display.contentCenterX centerY = display.contentCenterY actualW = display.actualContentWidth actualH = display.actualContentHeight originX = display.screenOriginX originY = display.screenOriginY
It’ll give you easy access to the center of the screen, the width…
If you want the background to appear first, simply put the code for the background on top, i.e.
local background = display.newImage(YOUR PROPERTIES...) local button = display.newImage(YOUR PROPERTIES...) local button = display.newImage(YOUR PROPERTIES...) local button = display.newImage(YOUR PROPERTIES...) ...
You get the point. The background is on top of the code so it gets drawn on the screen first, everything after that will stack up on each other 
Here is some code that I always use in my projects to speed things up a bit:
centerX = display.contentCenterX centerY = display.contentCenterY actualW = display.actualContentWidth actualH = display.actualContentHeight originX = display.screenOriginX originY = display.screenOriginY
It’ll give you easy access to the center of the screen, the width…
If you want the background to appear first, simply put the code for the background on top, i.e.
local background = display.newImage(YOUR PROPERTIES...) local button = display.newImage(YOUR PROPERTIES...) local button = display.newImage(YOUR PROPERTIES...) local button = display.newImage(YOUR PROPERTIES...) ...
You get the point. The background is on top of the code so it gets drawn on the screen first, everything after that will stack up on each other 