Hi folks. I’m a senior Flash dev who’s just starting out with Corona. Obviously I’m trying to break my expectancies of Corona or LUA acting like Flash or AS3.
Simple question here.
When scaling an object, specifically a rectangle, is there something besides setting the x/y reference to have it scale from a non center reference point? Not sure what I’m missing here.
There does seem to be a difference between this:
[blockcode]
local box = display.newRect( 100, 100, 100, 100 )
box.width = 200
box.height = 200
[/blockcode]
and this
[blockcode]
local box = display.newRect( 100, 100, 100, 100 )
box.xReference = -50
box.yReference = -50
box.width = 200
box.height = 200
[/blockcode]
The scaling or rather width/height adjustment is center-based.
TIA for any input. [import]uid: 43484 topic_id: 7772 reply_id: 307772[/import]