Object (rotating it + Increasing size)

Hi to all!! I have to do something that appears to have a simple solution, but not for me :smiley:

I need to do this in my opening scene:

A small object (like a ball) has to be rotating (not moving, just rotating), and increasing size until it stops.

For example it starts as a small ball, starts rotating and at the same time increasing the size, till it stops.

Is it possible?

Any help???

Code example (very wrong by the way):

[lua]

for i = 1,100 do
    rollingBall.contentWidth = rollingBall.contentWidth + 1
    rollingBall: rotate(i)
end

[/lua]

Thanks A LOT :slight_smile:

local rollingBall = display.newImageRect( "ball.png", 10, 10 ) transition.to( rollingBall, { xScale = 2, yScale = 2, rotation = 360 \* 4, time = 5000 } )
local rollingBall = display.newImageRect( "ball.png", 10, 10 ) transition.to( rollingBall, { xScale = 2, yScale = 2, rotation = 360 \* 4, time = 5000 } )