Active transition and group change question

I have the following scenario:

I have objects inside a group. Now I start transitioning (scaling) the group which also is affecting the objects inside the group.

Now I take some of the objects out of the group and put them into another WHILE the transitioning of the first group still is active.

Right now everything in my test looks like the transitioning still is affecting the objects… even if they are not in the group anymore.

Is this possible?

No, that won’t happen.

Try this small snippet:

local group1 = display.newGroup() local group2 = display.newGroup() local tmp1 = display.newCircle( group1, display.contentCenterX - 400, display.contentCenterY, 20 ) local tmp2 = display.newCircle( group1, display.contentCenterX - 200, display.contentCenterY, 20 ) transition.to( group1, {xScale = 1.5, time = 2000 } ) timer.performWithDelay( 1000, function() group2:insert(tmp2) end )

Note: When in doubt, make a test case and see if you’re right.  You’ve got something else happening in your game.

Thx for your help and code here!

I’m looking what is going on here… didn’t find anything yet.

No, that won’t happen.

Try this small snippet:

local group1 = display.newGroup() local group2 = display.newGroup() local tmp1 = display.newCircle( group1, display.contentCenterX - 400, display.contentCenterY, 20 ) local tmp2 = display.newCircle( group1, display.contentCenterX - 200, display.contentCenterY, 20 ) transition.to( group1, {xScale = 1.5, time = 2000 } ) timer.performWithDelay( 1000, function() group2:insert(tmp2) end )

Note: When in doubt, make a test case and see if you’re right.  You’ve got something else happening in your game.

Thx for your help and code here!

I’m looking what is going on here… didn’t find anything yet.