Change scale with transformation

Is there a way to change the scale of an object during a transformation? I have an object that I want to increase in size while it moves, ie: a bird flying toward the screen. [import]uid: 6397 topic_id: 1848 reply_id: 301848[/import]

In answer to my own question use width=targetWidth, height=targetHeight instead of scale. It would be nice to be able to use percentages ie:width=50% but you must use pixels. [import]uid: 6397 topic_id: 1848 reply_id: 5470[/import]

width=50%

isn’t that same as:

width = width * .5 [import]uid: 7849 topic_id: 1848 reply_id: 6157[/import]

Yeah, guess I’m a little slow :b. I did realize that right after I posted that message. [import]uid: 6397 topic_id: 1848 reply_id: 6163[/import]

[lua]transition.to(yourObj, {time = 1000, x=newXpos, y=newYpos, xScale=2.0, yScale=2.0 })[/lua] [import]uid: 5712 topic_id: 1848 reply_id: 6164[/import]

scaling it to 200% may make the image look a little grainy. You might want to start with a larger png and do something like:

yourObj.xScale=.01; yourObj.yScale=.01 transition.to(yourObj, {time = 1000, x=newXpos, y=newYpos, xScale=1, yScale=1 }) [import]uid: 8194 topic_id: 1848 reply_id: 6199[/import]