transition.scaling ?

I’m using the transition.whatever functions to have bonus scores float up and fade out from the targets in my game. Can anyone recommend a good method to also scale the image as it moves upwards, and fades? Ideally it would be great if one of the methods of transition was transition.scale. , but alas…
TIA

[code]
function callScoreAlert (event)

local displayScore = display.newImage (“200.png”)
displayScore.x = event.x
displayScore.y = event.y - 100
transition.dissolve(displayScore, { time = 1000, y = current , transition=easing.inOutExpo})
transition.to(displayScore, {time = 1000, y = y-50 , transition=easing.inOutExpo , })
transition.scale(displayScore, {time = 1000, y = y-50 , transition=easing.inOutExpo })
end

[code]
[import]uid: 7382 topic_id: 12174 reply_id: 312174[/import]

Did you try adding the xScale=2 and/or yScale=2 along with the x and y. It can be all in one line with transition.to

Cheers

?:slight_smile:
[import]uid: 3826 topic_id: 12174 reply_id: 44268[/import]

That would be awesome, I guessed at how that might be structured, and I appear to be guessing wrong.
I tried this and a few other variations, could you please give me an example? Also, if this is a method to this call why isn’t it documented? Would this method incrementally scale it over the transition time from a default of 1 BTW? I guess I could have added an event listener, to the transition, and called a function to scale the image, but I was looking for a more elegant solution.

TIA

[code]
transition.to(displayScore, {time = 1000, y = y-50 , xScale = 2, yScale = 2, transition=easing.inOutExpo , })

[code]
[import]uid: 7382 topic_id: 12174 reply_id: 44300[/import]

Hey Biffo, yes, just like that :slight_smile: xScale and yScale are very handy :smiley: [import]uid: 52491 topic_id: 12174 reply_id: 44406[/import]

Hi Peach. I’ve been following some of your posts, and tutorials, I’ve been meaning to contribute to you too, (will do so now). I have found you are extremely good at simplifying the methods, and means of using corona. The problem is the usage I referenced above does not cause the image to scale. Is my syntax correct? [import]uid: 7382 topic_id: 12174 reply_id: 44445[/import]

this seems to work for me, using alpha 0 makes it fade away.

transition.to(displayScore,{time = 1000; y = y-50; xScale = 2; yScale = 2; alpha = 0; transition=easing.inOutExpo;})
[import]uid: 2131 topic_id: 12174 reply_id: 44450[/import]

Thanks for the help fellas,(and Peach). Needless to say this was user error on my part. [import]uid: 7382 topic_id: 12174 reply_id: 44457[/import]