Concurrent Transitions on Display Object

Hi there, I would like to apply multiple concurrent transitions on a display object, is that possible?

What I’m trying to do is scale up an image and centralize it in the centre of the screen.

Here’s my code snippet

transition.moveTo( rocketImage, { x=180, y=350, time=100 } )

transition.scaleTo( rocketImage, { xScale=1.5, yScale=1.5, time=100 } )

However only the last line is being executed. Is there any way to make 2 transitions work at the same time? 

I do not want to nest the second transition to first transition’s onComplete as that’ll make it look weird.

UPDATE: I’m able to scale up and centralize it by adjusting the AnchorX position. Although it achieved what I want but i still need to know if there’s answer to my initial question of whether can two transitions run concurrently?

Yes, they can. Just use the plain transition.to function instead of the specialized scaleTo and moveTo:

transition.to(rocketImage, {x = 180, y = 350, xScale = 1.5, yScale = 1.5, time = 100})
  • Caleb

Yes, they can. Just use the plain transition.to function instead of the specialized scaleTo and moveTo:

transition.to(rocketImage, {x = 180, y = 350, xScale = 1.5, yScale = 1.5, time = 100})
  • Caleb