Hey folks,
First time posting here and i’ve been messing around with Corona (Including LUA) for the past few weeks so i’m not too familiar so please bare with me. I’m currently trying to add a permanent background that doesn’t move and only in portrait mode however i’m running into an issue when using the following extremely generic code:
local background = display.newImage("bg1.png");
I noticed that on one of the starter courses supplied with Corona on the “Hello World” one it used that code to display a BG image and it worked.
Here is my code as of now without any background image
local \_H = display.contentHeight;
local \_W = display.contentWidth;
local btn = display.newImageRect("images/red\_ball.png",150, 150);
btn:setReferencePoint(display.CenterReferencePoint);
btn.x = \_W/2; btn.y = \_H/2;
local txt = display.newText("Sample Text", 0, 0, native.systemFont, 16\*2);
txt.xScale = 0.5; txt.yScale = 0.5;
txt:setReferencePoint(display.CenterReferencePoint);
txt.x = \_W/2; txt.y = \_H/2;
Thanks in advanced. [import]uid: 19169 topic_id: 6269 reply_id: 306269[/import]