Hi,
I have a problem changing my Circle’s size
Here is the current size of thePlayer.
[lua]thePlayer = display.newCircle( 100, 100, 10 )[/lua]
However, how do I change the size to
[lua]thePlayer = display.newCircle( 100, 100, 20 )[/lua]
After I press a button?
[lua]local thePlayer = display.newCircle( 100, 100, 10 )
thePlayer:setFillColor(0,1,0)
local button = display.newRect ( 300, 300, 50, 50 )
function sizeChange ( event )
if event.phase == “began” then
--What should I code here to change the size
end
end
button:addEventListener (“touch”, sizeChange)[/lua]