We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59cd758 commit 21db165Copy full SHA for 21db165
sample/OpenflSample.hx
@@ -116,10 +116,13 @@ class OpenflSample extends Sprite
116
containers[i].x = parallax.layers[i].x;
117
containers[i].y = parallax.layers[i].y;
118
119
- for (j in 0...containers[i].numChildren)
+ if (parallax.pushApartOnZoom > 0)
120
{
121
- containers[i].getChildAt(j).x = parallax.layers[i].sprites[j].x;
122
- containers[i].getChildAt(j).y = parallax.layers[i].sprites[j].y;
+ for (j in 0...containers[i].numChildren)
+ {
123
+ containers[i].getChildAt(j).x = parallax.layers[i].sprites[j].x;
124
+ containers[i].getChildAt(j).y = parallax.layers[i].sprites[j].y;
125
+ }
126
}
127
128
0 commit comments