Question: Lua help function should make the text object green while changing the the message and making the rectangle shrink to half size. Currently, neither of
Lua help
function should make the text object green while changing the the message and making the rectangle shrink to half size. Currently, neither of these changes is being made, correct it
function change () mytext.Text = "Now I am green!" mytext:FillColor( 1, 0, 0 ) myRectangle.Scale=1/2 end myText=display.newText("I am the original text", 200, 300, Arial , 30 ) myrectangle=display.newRect(150,200,60,150)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
