I am equally upset as @martin189 if not more because I have updated the build of corona to publish iOS 7 version to the AppStore only to find out my project is broken.
I have narrowed the issue to transition 2.0 transition.from() implementation be the cause.
here is part of my code that doesn’t work anymore:
puzRight.tween = transition.from(puzRight, {x=coords1.x, y=coords1.y, transition = easing.outQuad , time = 1000}) puzLeft.tween = transition.from(puzLeft, {x=coords2.x, y=coords2.y, transition = easing.outQuad , time = 1000}) puzRight.shade.tween = transition.from(puzRight.shade,{x=coords1.x-puzRight.shade.delta.x \* SCALE, y=coords1.y-puzRight.shade.delta.y \* SCALE, transition = easing.outQuad , time = 1000}) puzLeft.shade.tween = transition.from(puzLeft.shade, {x=coords2.x-puzLeft.shade.delta.x \* SCALE, y=coords2.y-puzLeft.shade.delta.y \* SCALE, transition = easing.outQuad , time = 1000})
Above code throws error:
2013-09-27 11:54:10.843 Corona Simulator[41268:e03] Runtime error ?:0: attempt to call field 'transition' (a table value) stack traceback: [C]: in function 'transition' ?: in function \<?:516\> ?: in function \<?:218\>
When you remove the transition (easing) parameter it works fine:
puzRight.tween = transition.from(puzRight, {x=coords1.x, y=coords1.y , time = 1000}) puzLeft.tween = transition.from(puzLeft, {x=coords2.x, y=coords2.y, time = 1000}) puzRight.shade.tween = transition.from(puzRight.shade,{x=coords1.x-puzRight.shade.delta.x \* SCALE, y=coords1.y-puzRight.shade.delta.y \* SCALE , time = 1000}) puzLeft.shade.tween = transition.from(puzLeft.shade, {x=coords2.x-puzLeft.shade.delta.x \* SCALE, y=coords2.y-puzLeft.shade.delta.y \* SCALE, time = 1000})
What is weird when I use the transition parameter in the first 2 transition.from() it works fine:
puzRight.tween = transition.from(puzRight, {x=coords1.x, y=coords1.y ,transition = easing.outQuad , time = 1000}) puzLeft.tween = transition.from(puzLeft, {x=coords2.x, y=coords2.y,transition = easing.outQuad , time = 1000}) puzRight.shade.tween = transition.from(puzRight.shade,{x=coords1.x-puzRight.shade.delta.x \* SCALE, y=coords1.y-puzRight.shade.delta.y \* SCALE , time = 1000}) puzLeft.shade.tween = transition.from(puzLeft.shade, {x=coords2.x-puzLeft.shade.delta.x \* SCALE, y=coords2.y-puzLeft.shade.delta.y \* SCALE , time = 1000})
NOTE: transition.to() works fine with the transition (easing) parameter.
I NEED this fixed for yesterday for proper AppStore iOS7 publishing.