[code]local myText1= display.newText(“How this app work!”, 0, 0, native.systemFont, 30)
screenCenterX = display.viewableContentWidth / 2
screenCenterY = display.viewableContentHeight /6
myText1:setTextColor(255, 0, 0)
group:insert(myText1)
[code]local myText2= display.newText("STEP 1. ", 0, 0, native.systemFont, 25)
–myText2.text = “Or you can change the text here”
myText2.x = display.contentWidth /2;
myText2.y = display.contentHeight /6;
myText2:setTextColor(255, 0, 0)
group:insert(myText2)
local myText3= display.newText(“whats your name”, 0, 0,200, 200, native.systemFont, 16)
myText3.x = display.contentWidth /2;
myText3.y = myText2.y + myText2.contentHeight /2 + myText3.contentHeight /2;
myText3:setTextColor(255, 255, 255)
group:insert(myText3)
local myText4= display.newText("STEP 2. ", 0, 0, native.systemFont, 25)
myText4.x = display.contentWidth /50;
myText4.y = display.contentHeight /10;
myText4:setTextColor(255, 0, 0)
group:insert(myText4)
local myText5= display.newText(“how old are you?”, 0, 0,200, 200, native.systemFont, 16)
myText5.x = display.contentWidth /2;
myText5.y = myText2.y + myText2.contentHeight /2 + myText3.contentHeight /2;
myText5:setTextColor(255, 255, 255)
group:insert(myText5)
local myText6= display.newText(“Step 3.”, 0, 0,200, 200, native.systemFont, 16)
myText6.x = display.contentWidth /2;
myText6.y = myText2.y + myText2.contentHeight /2 + myText3.contentHeight /2;
myText6:setTextColor(255, 255, 255)
group:insert(myText6)
local myText5= display.newText(“Where are you from?”, 0, 0,200, 200, native.systemFont, 16)
myText5.x = display.contentWidth /2;
myText5.y = myText2.y + myText2.contentHeight /2 + myText3.contentHeight /2;
myText5:setTextColor(255, 255, 255)
`` group:insert(myText5)
So lines 1-16 works fine. I only added the other text so that you can see what I am trying to do. So I know its not right because I just quickly copied and paste so you can get the visual. But doing it right it just kept overlapping, so Im thinking there is a better way to get it to look how I want.
[import]uid: 69302 topic_id: 24735 reply_id: 122740[/import]