Can someone explain me why it is sending this message?
error —> main.lua:6: attempt to perform arithmetic on global ‘width’ (a nil value) <—
local centerX, centerY = display.contentCenterX, display.contentCenterY local square = display.newRoundedRect( centerX, centerY, 32, 32, 12 ) local function makeItBiggerByEasing(event) event.target = mySquare local myTransition = transition.to( mySquare, { width = width + 5,height = height + 5, time = 350, transition = easing.OutQuad } ) end square:addEventListener("tap", makeItBiggerByEasing)
I am using a Chromebook C720 with Elementary OS as operative system and PlayOnLinux to run Corona,
any ideas?