of course button is actually a sprite object. So you will just code as:
--and your button will be scaled.
yourbuttonvariable:setScale(x,y)--If you want to scale only in x coordinate then
yourbuttonvariable:setScaleX(x)--If you want to scale only in y coordinate then
yourbuttonvariable:setScaleY(x)--Or for setting position
yourbuttonvariable:setPosition(x,y)--If you want to change only x position
yourbuttonvariable:setX(x)--If you want to change only Y position
yourbuttonvariable:setX(y)
Comments