--// Local auxiliary functions - - - - - - - - - - - - - - - - - - - - - - - -

--// 1.	rename:					" -> '
--// 2. comment root composition with texture "createComposition22_Balloon_01 = function()"
--// 3. add auxiliaru routines for managing animations: 
--		auxPlayNearBalloonAnimation(), 
--		auxGetNearBalloonAnimation(), 
--		auxCreateNearBalloonAnimations()
--// 4. replace CreateCompositionElement() with auxCreateCompositionElement() for some corrections ...

------------------------------------------------------------------------------
--
function auxPlayNearBalloonAnimation(compositionName)
    local composition = auxGetNearBalloonAnimation(compositionName);
    composition:SetVisible(true);
    composition:Play();
end

------------------------------------------------------------------------------
--
function auxHideNearBalloonAnimation(compositionName)
    local composition = auxGetNearBalloonAnimation(compositionName);
    composition:Stop();
    composition:SetVisible(false);
end

------------------------------------------------------------------------------
--
function auxGetNearBalloonAnimation(compositionName)
    assert(nearBalloonCompositions ~= nil and compositionName ~= nil);
	assert(nearBalloonCompositions[compositionName] ~= nil and 'Composition with specified name not exists !');

    return nearBalloonCompositions[compositionName];
end

-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--

function CreateComposition(parent, compositionRoutine, name, x,y,z, hotSpotX,hotSpotY, duration, isCyclic)
    assert(parent ~= nil and compositionRoutine ~= nil and name ~= nil and z ~= nil and duration ~= nil);

    local element = compositionRoutine();
    element:SetName(name);
    element:SetHotSpot(hotSpotX,hotSpotY);
    element:SetXY(x, y);
    assert(z - parent:GetZ());
    element:SetZ(z - parent:GetZ());
    element:AttachTo(parent);

    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetAngle(0);
    element:SetOpacity(1);
    
    if (isCyclic == true) then
        element:SetDuration(duration);
        element:SetCyclic(true);
	else
		element:SetDestroysOnEnd(false);
    end
	element:Stop();
    element:SetVisible(false);
    element:AssignClippingRect(parent);
	element:SetConsiderParentOpacity(true);

	return element;
end

-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function auxCreateCompositionElement(resourceName)
	local element = CreateCompositionElement(resourceName);
    local texName = string.sub(resourceName, string.len('data/Texture/Scenes/22_NearBalloon/Animations/Env/') + 1);

	--// set up flies animation
	if (texName == 'Bug_fly[01-02].png') then
		local anim = element:GetTexture();
		anim:Stop();
		anim:SetTextureRect(0,0, 19,18);
		anim:SetFrames(2);
		anim:SetFrame(0);
		anim:SetSpeed(30.0);
		anim:SetMode(HGEANIM_FWD + HGEANIM_LOOP);
		anim:Play();
    end

	--// set up a centipede's legs animation
	if (texName == 'Scolop_legs[0000-0006].png') then
		local anim = element:GetTexture();
		anim:Stop();
		anim:SetTextureRect(0,0, 88,31);
		anim:SetFrames(7);
		anim:SetFrame(0);
		anim:SetSpeed(30.0);
		anim:SetMode(HGEANIM_FWD + HGEANIM_LOOP);
		anim:Play();
    end

    --// set additive alpha blending mode for light & flare objects without alpha chanel (*.jpg)
    if (texName == 'EF_Dust_01.jpg' or
		texName == 'EF_light4_01.jpg') then

        element:GetTexture():SetBlendMode(0);
    end
	return element;
end

------------------------------------------------------------------------------
--
function auxCreateNearBalloonAnimations(parent)
    assert(parent ~= nil);
    nearBalloonCompositions = {};
    local CreateAndRegisterComposition = function (parent, compositionRoutine, name, x,y,z, hotSpotX,hotSpotY, duration, isCyclic)
        local element = CreateComposition(parent, compositionRoutine, name, x,y,z, hotSpotX,hotSpotY, duration, isCyclic);
        nearBalloonCompositions[element:GetName()] = element;
    end
    
    CreateAndRegisterComposition(parent, createCompositionEnvTop, 		'EnvTop',	0,0,108, 512,384, 10, true);
    CreateAndRegisterComposition(parent, createCompositionFly1, 		'Fly1',		0,0,107, 512,384, 10, false);
    CreateAndRegisterComposition(parent, createCompositionFly2, 		'Fly2',		0,0,107, 512,384, 10, false);
    CreateAndRegisterComposition(parent, createCompositionFly3, 		'Fly3',		0,0,107, 512,384, 10, false);
    CreateAndRegisterComposition(parent, createCompositionScolopendra,	'Centipede',0,0,107, 512,384, 10, false);
end

------------------------------------------------------------------------------
--
--createComposition22_Balloon_01 = function()
--
--    local composition22_Balloon_01 = CreateCompositionSequence();
--    local compositionDuration = 10;
--    composition22_Balloon_01:SetDuration(compositionDuration);
--
--
--    -- Layer Layer_1
--    local element = createCompositionEnvTop();
--    element:SetName('Layer_1');
--    composition22_Balloon_01:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(composition22_Balloon_01);
--    element:SetXY(512, 384);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(0);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 10);
--
--
--    effector:Play();
--
--
--    -- Layer Layer_2
--    local element = createCompositionFly1();
--    element:SetName('Layer_2');
--    composition22_Balloon_01:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(composition22_Balloon_01);
--    element:SetXY(512, 384);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(0);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 10);
--
--
--    effector:Play();
--
--
--    -- Layer Layer_3
--    local element = createCompositionFly2();
--    element:SetName('Layer_3');
--    composition22_Balloon_01:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(composition22_Balloon_01);
--    element:SetXY(512, 384);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(0);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 10);
--
--
--    effector:Play();
--
--
--    -- Layer Layer_4
--    local element = createCompositionFly3();
--    element:SetName('Layer_4');
--    composition22_Balloon_01:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(composition22_Balloon_01);
--    element:SetXY(512, 384);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(0);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 10);
--
--
--    effector:Play();
--
--
--    -- Layer Layer_5
--    local element = createCompositionScolopendra();
--    element:SetName('Layer_5');
--    composition22_Balloon_01:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(composition22_Balloon_01);
--    element:SetXY(512, 384);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(0);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 10);
--
--
--    effector:Play();
--
--
--    -- Layer Layer_6
--    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/22_Balloon_01.jpg');
--    element:SetName('Layer_6');
--    composition22_Balloon_01:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(composition22_Balloon_01);
--    element:SetXY(512, 384);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(0);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 10);
--
--
--    effector:Play();
--
--    composition22_Balloon_01:Play();
--
--    return composition22_Balloon_01;
--end

createCompositionEnvTop = function()

    local compositionEnvTop = CreateCompositionSequence();
    local compositionDuration = 10;
    compositionEnvTop:SetDuration(compositionDuration);


    -- Layer Layer_1
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/EF_light4_01.jpg');
    element:SetName('Layer_1');
    compositionEnvTop:AddElement(element);
    element:SetHotSpot(64, 61.5);
    element:SetParentElement(compositionEnvTop);
    element:SetXY(625, 296);

    element:SetScaleX(10.609375);
    element:SetScaleY(10.5609756097561);
    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_O, 0, 0.2);
    effector:SetKey(_TRACK_O, 1.16, 0.4);
    effector:SetKey(_TRACK_O, 2.68, 0);
    effector:SetKey(_TRACK_O, 4.32, 0.15);
    effector:SetKey(_TRACK_O, 5.4, 0.05);
    effector:SetKey(_TRACK_O, 7.04, 0.4);
    effector:SetKey(_TRACK_O, 8, 0.2);
    effector:SetKey(_TRACK_O, 8.84, 0.25);
    effector:SetKey(_TRACK_O, 9.96, 0.2);

    effector:Play();


    -- Layer Layer_2
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/EF_Dust_01.jpg');
    element:SetName('Layer_2');
    compositionEnvTop:AddElement(element);
    element:SetHotSpot(130.5, 131);
    element:SetParentElement(compositionEnvTop);
    element:SetScaleX(1.81226053639847);
    element:SetScaleY(1.88549618320611);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_X, 0, 407);
    effector:SetKey(_TRACK_Y, 0, 417);
    effector:SetKey(_TRACK_X, 4.32, 443);
    effector:SetKey(_TRACK_Y, 4.32, 265);
    effector:SetKey(_TRACK_X, 4.56, 361);
    effector:SetKey(_TRACK_Y, 4.56, 633);
    effector:SetKey(_TRACK_X, 9.96, 407);
    effector:SetKey(_TRACK_Y, 9.96, 417);
    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 4.32, -0.2617993875);
    effector:SetKey(_TRACK_A, 4.56, -0.2617993875);
    effector:SetKey(_TRACK_A, 9.96, -0.523598775);
    effector:SetKey(_TRACK_O, 0, 0);
    effector:SetKey(_TRACK_O, 0.8, 0.8);
    effector:SetKey(_TRACK_O, 1.92, 0.2);
    effector:SetKey(_TRACK_O, 3.12, 0.8);
    effector:SetKey(_TRACK_O, 4.32, 0);
    effector:SetKey(_TRACK_O, 4.56, 0);
    effector:SetKey(_TRACK_O, 5.32, 1);
    effector:SetKey(_TRACK_O, 6.44, 0.2);
    effector:SetKey(_TRACK_O, 7.28, 1);
    effector:SetKey(_TRACK_O, 7.92, 0.4);
    effector:SetKey(_TRACK_O, 8.92, 0.9);
    effector:SetKey(_TRACK_O, 9.96, 0);

    effector:Play();


    -- Layer Layer_3
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/EF_Dust_01.jpg');
    element:SetName('Layer_3');
    compositionEnvTop:AddElement(element);
    element:SetHotSpot(130.5, 131);
    element:SetParentElement(compositionEnvTop);
    element:SetScaleX(1.81226053639847);
    element:SetScaleY(1.88549618320611);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_X, 0, 737);
    effector:SetKey(_TRACK_Y, 0, 459);
    effector:SetKey(_TRACK_X, 9.96, 741);
    effector:SetKey(_TRACK_Y, 9.96, 211);
    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 9.96, 0.6108652375);
    effector:SetKey(_TRACK_O, 0, 0);
    effector:SetKey(_TRACK_O, 1, 0.8);
    effector:SetKey(_TRACK_O, 1.92, 0.2);
    effector:SetKey(_TRACK_O, 3, 0.8);
    effector:SetKey(_TRACK_O, 4.16, 0.2);
    effector:SetKey(_TRACK_O, 5.36, 0.2);
    effector:SetKey(_TRACK_O, 6.16, 0.1);
    effector:SetKey(_TRACK_O, 7.12, 1);
    effector:SetKey(_TRACK_O, 9.96, 0);

    effector:Play();

    compositionEnvTop:Play();

    return compositionEnvTop;
end

createCompositionFly1 = function()

    local compositionFly1 = CreateCompositionSequence();
    local compositionDuration = 10;
    compositionFly1:SetDuration(compositionDuration);


    -- Layer Layer_1
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Bug_fly[01-02].png');
    element:SetName('Layer_1');
    compositionFly1:AddElement(element);
    element:SetHotSpot(9.5, 9);
    element:SetParentElement(compositionFly1);
    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_X, 0, 1042.08108520508);
    effector:SetKey(_TRACK_Y, 0, 268.162155151367);
    effector:SetKey(_TRACK_X, 0.36, 958.081085205078);
    effector:SetKey(_TRACK_Y, 0.36, 267.662155151367);
    effector:SetKey(_TRACK_X, 0.76, 895.581085205078);
    effector:SetKey(_TRACK_Y, 0.76, 294.162155151367);
    effector:SetKey(_TRACK_X, 1.16, 838.581085205078);
    effector:SetKey(_TRACK_Y, 1.16, 310.662155151367);
    effector:SetKey(_TRACK_X, 1.56, 772.081085205078);
    effector:SetKey(_TRACK_Y, 1.56, 322.162155151367);
    effector:SetKey(_TRACK_X, 1.84, 735.581085205078);
    effector:SetKey(_TRACK_Y, 1.84, 310.662155151367);
    effector:SetKey(_TRACK_X, 2.08, 710.081085205078);
    effector:SetKey(_TRACK_Y, 2.08, 303.162155151367);
    effector:SetKey(_TRACK_X, 2.36, 697.081085205078);
    effector:SetKey(_TRACK_Y, 2.36, 318.662155151367);
    effector:SetKey(_TRACK_X, 2.6, 675.081085205078);
    effector:SetKey(_TRACK_Y, 2.6, 327.162155151367);
    effector:SetKey(_TRACK_X, 2.8, 657.081085205078);
    effector:SetKey(_TRACK_Y, 2.8, 323.662155151367);
    effector:SetKey(_TRACK_X, 3, 642.081085205078);
    effector:SetKey(_TRACK_Y, 3, 311.162155151367);
    effector:SetKey(_TRACK_X, 3.2, 646.581085205078);
    effector:SetKey(_TRACK_Y, 3.2, 293.162155151367);
    effector:SetKey(_TRACK_X, 3.4, 659.581085205078);
    effector:SetKey(_TRACK_Y, 3.4, 285.662155151367);
    effector:SetKey(_TRACK_X, 3.6, 647.081085205078);
    effector:SetKey(_TRACK_Y, 3.6, 273.162155151367);
    effector:SetKey(_TRACK_X, 4.24, 585.581085205078);
    effector:SetKey(_TRACK_Y, 4.24, 273.162155151367);
    effector:SetKey(_TRACK_X, 4.44, 573.581085205078);
    effector:SetKey(_TRACK_Y, 4.44, 283.662155151367);
    effector:SetKey(_TRACK_X, 4.64, 569.581085205078);
    effector:SetKey(_TRACK_Y, 4.64, 303.162155151367);
    effector:SetKey(_TRACK_X, 4.84, 584.081085205078);
    effector:SetKey(_TRACK_Y, 4.84, 322.162155151367);
    effector:SetKey(_TRACK_X, 5.04, 586.581085205078);
    effector:SetKey(_TRACK_Y, 5.04, 345.662155151367);
    effector:SetKey(_TRACK_X, 5.24, 569.581085205078);
    effector:SetKey(_TRACK_Y, 5.24, 362.162155151367);
    effector:SetKey(_TRACK_X, 5.44, 548.581085205078);
    effector:SetKey(_TRACK_Y, 5.44, 361.162155151367);
    effector:SetKey(_TRACK_X, 5.64, 529.581085205078);
    effector:SetKey(_TRACK_Y, 5.64, 346.162155151367);
    effector:SetKey(_TRACK_X, 5.84, 535.081085205078);
    effector:SetKey(_TRACK_Y, 5.84, 328.662155151367);
    effector:SetKey(_TRACK_X, 6.04, 558.081085205078);
    effector:SetKey(_TRACK_Y, 6.04, 322.662155151367);
    effector:SetKey(_TRACK_X, 6.24, 585.581085205078);
    effector:SetKey(_TRACK_Y, 6.24, 334.162155151367);
    effector:SetKey(_TRACK_X, 6.44, 609.081085205078);
    effector:SetKey(_TRACK_Y, 6.44, 345.162155151367);
    effector:SetKey(_TRACK_X, 6.64, 642.581085205078);
    effector:SetKey(_TRACK_Y, 6.64, 353.162155151367);
    effector:SetKey(_TRACK_X, 6.88, 674.081085205078);
    effector:SetKey(_TRACK_Y, 6.88, 354.662155151367);
    effector:SetKey(_TRACK_X, 7.08, 706.081085205078);
    effector:SetKey(_TRACK_Y, 7.08, 352.162155151367);
    effector:SetKey(_TRACK_X, 7.28, 737.581085205078);
    effector:SetKey(_TRACK_Y, 7.28, 347.162155151367);
    effector:SetKey(_TRACK_X, 7.48, 768.081085205078);
    effector:SetKey(_TRACK_Y, 7.48, 340.162155151367);
    effector:SetKey(_TRACK_X, 7.68, 781.581085205078);
    effector:SetKey(_TRACK_Y, 7.68, 350.162155151367);
    effector:SetKey(_TRACK_X, 7.88, 771.081085205078);
    effector:SetKey(_TRACK_Y, 7.88, 359.662155151367);
    effector:SetKey(_TRACK_X, 8.08, 752.081085205078);
    effector:SetKey(_TRACK_Y, 8.08, 363.162155151367);
    effector:SetKey(_TRACK_X, 8.28, 741.581085205078);
    effector:SetKey(_TRACK_Y, 8.28, 348.662155151367);
    effector:SetKey(_TRACK_X, 8.48, 737.581085205078);
    effector:SetKey(_TRACK_Y, 8.48, 327.162155151367);
    effector:SetKey(_TRACK_X, 8.68, 732.581085205078);
    effector:SetKey(_TRACK_Y, 8.68, 306.162155151367);
    effector:SetKey(_TRACK_X, 8.88, 719.081085205078);
    effector:SetKey(_TRACK_Y, 8.88, 294.662155151367);
    effector:SetKey(_TRACK_X, 9.08, 695.081085205078);
    effector:SetKey(_TRACK_Y, 9.08, 284.662155151367);
    effector:SetKey(_TRACK_X, 9.28, 675.081085205078);
    effector:SetKey(_TRACK_Y, 9.28, 280.162155151367);
    effector:SetKey(_TRACK_X, 9.48, 659.581085205078);
    effector:SetKey(_TRACK_Y, 9.48, 267.162155151367);
    effector:SetKey(_TRACK_X, 9.68, 642.081085205078);
    effector:SetKey(_TRACK_Y, 9.68, 256.662155151367);
    effector:SetKey(_TRACK_SX, 0, 1.5);
    effector:SetKey(_TRACK_SY, 0, 1.5);
    effector:SetKey(_TRACK_SX, 1.48, 1);
    effector:SetKey(_TRACK_SY, 1.48, 1);
    effector:SetKey(_TRACK_SX, 1.88, 0.8);
    effector:SetKey(_TRACK_SY, 1.88, 0.8);
    effector:SetKey(_TRACK_SX, 2.36, 0.7);
    effector:SetKey(_TRACK_SY, 2.36, 0.7);
    effector:SetKey(_TRACK_SX, 2.68, 1.1);
    effector:SetKey(_TRACK_SY, 2.68, 1.1);
    effector:SetKey(_TRACK_SX, 3.4, 0.6);
    effector:SetKey(_TRACK_SY, 3.4, 0.6);
    effector:SetKey(_TRACK_SX, 4.28, 0.6);
    effector:SetKey(_TRACK_SY, 4.28, 0.6);
    effector:SetKey(_TRACK_SX, 5.08, 1);
    effector:SetKey(_TRACK_SY, 5.08, 1);
    effector:SetKey(_TRACK_SX, 5.44, 0.8);
    effector:SetKey(_TRACK_SY, 5.44, 0.8);
    effector:SetKey(_TRACK_SX, 5.84, 1);
    effector:SetKey(_TRACK_SY, 5.84, 1);
    effector:SetKey(_TRACK_SX, 6.36, 0.8);
    effector:SetKey(_TRACK_SY, 6.36, 0.8);
    effector:SetKey(_TRACK_SX, 7.48, 1);
    effector:SetKey(_TRACK_SY, 7.48, 1);
    effector:SetKey(_TRACK_SX, 7.88, 0.8);
    effector:SetKey(_TRACK_SY, 7.88, 0.8);
    effector:SetKey(_TRACK_SX, 8.16, 0.7);
    effector:SetKey(_TRACK_SY, 8.16, 0.7);
    effector:SetKey(_TRACK_SX, 8.96, 0.6);
    effector:SetKey(_TRACK_SY, 8.96, 0.6);
    effector:SetKey(_TRACK_SX, 9.68, 0.5);
    effector:SetKey(_TRACK_SY, 9.68, 0.5);
    effector:SetKey(_TRACK_O, 0, 1);
    effector:SetKey(_TRACK_O, 1.56, 1);
    effector:SetKey(_TRACK_O, 1.6, 0);
    effector:SetKey(_TRACK_O, 1.76, 0);
    effector:SetKey(_TRACK_O, 1.8, 1);
    effector:SetKey(_TRACK_O, 2.04, 1);
    effector:SetKey(_TRACK_O, 2.08, 0);
    effector:SetKey(_TRACK_O, 2.36, 0);
    effector:SetKey(_TRACK_O, 2.4, 1);
    effector:SetKey(_TRACK_O, 3.4, 1);
    effector:SetKey(_TRACK_O, 3.44, 0);
    effector:SetKey(_TRACK_O, 4.2, 0);
    effector:SetKey(_TRACK_O, 4.24, 1);
    effector:SetKey(_TRACK_O, 5.24, 1);
    effector:SetKey(_TRACK_O, 5.28, 0);
    effector:SetKey(_TRACK_O, 5.4, 0);
    effector:SetKey(_TRACK_O, 5.44, 1);
    effector:SetKey(_TRACK_O, 6.44, 1);
    effector:SetKey(_TRACK_O, 6.48, 0);
    effector:SetKey(_TRACK_O, 6.6, 0);
    effector:SetKey(_TRACK_O, 6.64, 1);
    effector:SetKey(_TRACK_O, 7.88, 1);
    effector:SetKey(_TRACK_O, 7.92, 0);
    effector:SetKey(_TRACK_O, 8.04, 0);
    effector:SetKey(_TRACK_O, 8.08, 1);
    effector:SetKey(_TRACK_O, 9.44, 1);
    effector:SetKey(_TRACK_O, 9.48, 0);

    effector:Play();

    compositionFly1:Play();

    return compositionFly1;
end

createCompositionFly2 = function()

    local compositionFly2 = CreateCompositionSequence();
    local compositionDuration = 10;
    compositionFly2:SetDuration(compositionDuration);


    -- Layer Layer_1
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Bug_fly[01-02].png');
    element:SetName('Layer_1');
    compositionFly2:AddElement(element);
    element:SetHotSpot(9.5, 9);
    element:SetParentElement(compositionFly2);
    element:SetAngle(0);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_X, 0, -23.6216278076172);
    effector:SetKey(_TRACK_Y, 0, 448.378372192383);
    effector:SetKey(_TRACK_X, 0.36, 17.1906100064036);
    effector:SetKey(_TRACK_Y, 0.36, 472.815776571614);
    effector:SetKey(_TRACK_X, 0.64, 61.3783721923828);
    effector:SetKey(_TRACK_Y, 0.64, 479.378372192383);
    effector:SetKey(_TRACK_X, 0.96, 122.805361396655);
    effector:SetKey(_TRACK_Y, 0.96, 467.664727920381);
    effector:SetKey(_TRACK_X, 1.2, 166.378372192383);
    effector:SetKey(_TRACK_Y, 1.2, 434.378372192383);
    effector:SetKey(_TRACK_X, 1.52, 186.311715639584);
    effector:SetKey(_TRACK_Y, 1.52, 385.645019572138);
    effector:SetKey(_TRACK_X, 1.8, 219.378372192383);
    effector:SetKey(_TRACK_Y, 1.8, 356.378372192383);
    effector:SetKey(_TRACK_X, 2.04, 261.378372192383);
    effector:SetKey(_TRACK_Y, 2.04, 344.878372192383);
    effector:SetKey(_TRACK_X, 2.32, 284.878372192383);
    effector:SetKey(_TRACK_Y, 2.32, 333.878372192383);
    effector:SetKey(_TRACK_X, 2.6, 295.878372192383);
    effector:SetKey(_TRACK_Y, 2.6, 319.878372192383);
    effector:SetKey(_TRACK_X, 2.84, 286.378372192383);
    effector:SetKey(_TRACK_Y, 2.84, 326.378372192383);
    effector:SetKey(_TRACK_X, 3.12, 272.878372192383);
    effector:SetKey(_TRACK_Y, 3.12, 329.378372192383);
    effector:SetKey(_TRACK_X, 3.36, 287.878372192383);
    effector:SetKey(_TRACK_Y, 3.36, 330.378372192383);
    effector:SetKey(_TRACK_X, 3.76, 228.878372192383);
    effector:SetKey(_TRACK_Y, 3.76, 313.878372192383);
    effector:SetKey(_TRACK_X, 4.16, 162.878372192383);
    effector:SetKey(_TRACK_Y, 4.16, 271.378372192383);
    effector:SetKey(_TRACK_X, 4.64, 140.378372192383);
    effector:SetKey(_TRACK_Y, 4.64, 212.378372192383);
    effector:SetKey(_TRACK_X, 5.08, 154.378372192383);
    effector:SetKey(_TRACK_Y, 5.08, 163.878372192383);
    effector:SetKey(_TRACK_X, 5.44, 193.878372192383);
    effector:SetKey(_TRACK_Y, 5.44, 134.378372192383);
    effector:SetKey(_TRACK_X, 5.84, 250.378372192383);
    effector:SetKey(_TRACK_Y, 5.84, 131.878372192383);
    effector:SetKey(_TRACK_X, 6.24, 303.878372192383);
    effector:SetKey(_TRACK_Y, 6.24, 169.878372192383);
    effector:SetKey(_TRACK_X, 6.56, 304.878372192383);
    effector:SetKey(_TRACK_Y, 6.56, 211.878372192383);
    effector:SetKey(_TRACK_X, 6.84, 260.378372192383);
    effector:SetKey(_TRACK_Y, 6.84, 237.878372192383);
    effector:SetKey(_TRACK_X, 7.16, 198.378372192383);
    effector:SetKey(_TRACK_Y, 7.16, 227.378372192383);
    effector:SetKey(_TRACK_X, 7.48, 168.378372192383);
    effector:SetKey(_TRACK_Y, 7.48, 190.378372192383);
    effector:SetKey(_TRACK_X, 7.8, 178.878372192383);
    effector:SetKey(_TRACK_Y, 7.8, 140.878372192383);
    effector:SetKey(_TRACK_X, 8.12, 217.378372192383);
    effector:SetKey(_TRACK_Y, 8.12, 97.8783721923828);
    effector:SetKey(_TRACK_X, 8.44, 272.878372192383);
    effector:SetKey(_TRACK_Y, 8.44, 80.3783721923828);
    effector:SetKey(_TRACK_X, 8.8, 348.378372192383);
    effector:SetKey(_TRACK_Y, 8.8, 88.3783721923828);
    effector:SetKey(_TRACK_X, 9.16, 414.878372192383);
    effector:SetKey(_TRACK_Y, 9.16, 66.3783721923828);
    effector:SetKey(_TRACK_X, 9.48, 450.878372192383);
    effector:SetKey(_TRACK_Y, 9.48, 22.3783721923828);
    effector:SetKey(_TRACK_X, 9.96, 499.878372192383);
    effector:SetKey(_TRACK_Y, 9.96, -73.6216278076172);
    effector:SetKey(_TRACK_SX, 0, 1.5);
    effector:SetKey(_TRACK_SY, 0, 1.5);
    effector:SetKey(_TRACK_SX, 1.88, 1);
    effector:SetKey(_TRACK_SY, 1.88, 1);
    effector:SetKey(_TRACK_SX, 2.48, 0.9);
    effector:SetKey(_TRACK_SY, 2.48, 0.9);
    effector:SetKey(_TRACK_SX, 3.12, 1.2);
    effector:SetKey(_TRACK_SY, 3.12, 1.2);
    effector:SetKey(_TRACK_SX, 4.56, 0.9);
    effector:SetKey(_TRACK_SY, 4.56, 0.9);
    effector:SetKey(_TRACK_SX, 6.24, 1.2);
    effector:SetKey(_TRACK_SY, 6.24, 1.2);
    effector:SetKey(_TRACK_SX, 7.72, 0.8);
    effector:SetKey(_TRACK_SY, 7.72, 0.8);
    effector:SetKey(_TRACK_SX, 8.68, 0.9);
    effector:SetKey(_TRACK_SY, 8.68, 0.9);
    effector:SetKey(_TRACK_SX, 9.84, 0.6);
    effector:SetKey(_TRACK_SY, 9.84, 0.6);

    effector:Play();

    compositionFly2:Play();

    return compositionFly2;
end

createCompositionFly3 = function()

    local compositionFly3 = CreateCompositionSequence();
    local compositionDuration = 10;
    compositionFly3:SetDuration(compositionDuration);


    -- Layer Layer_1
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Bug_fly[01-02].png');
    element:SetName('Layer_1');
    compositionFly3:AddElement(element);
    element:SetHotSpot(9.5, 9);
    element:SetParentElement(compositionFly3);
    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_X, 0, 1081.31080627441);
    effector:SetKey(_TRACK_Y, 0, 557.918914794922);
    effector:SetKey(_TRACK_X, 0.4, 1003.31080627441);
    effector:SetKey(_TRACK_Y, 0.4, 573.418914794922);
    effector:SetKey(_TRACK_X, 0.68, 956.310806274414);
    effector:SetKey(_TRACK_Y, 0.68, 575.918914794922);
    effector:SetKey(_TRACK_X, 0.88, 927.310806274414);
    effector:SetKey(_TRACK_Y, 0.88, 553.918914794922);
    effector:SetKey(_TRACK_X, 1.2, 893.310806274414);
    effector:SetKey(_TRACK_Y, 1.2, 538.418914794922);
    effector:SetKey(_TRACK_X, 1.52, 874.810806274414);
    effector:SetKey(_TRACK_Y, 1.52, 520.418914794922);
    effector:SetKey(_TRACK_X, 1.92, 855.310806274414);
    effector:SetKey(_TRACK_Y, 1.92, 492.668914794922);
    effector:SetKey(_TRACK_X, 2.08, 847.560806274414);
    effector:SetKey(_TRACK_Y, 2.08, 488.418914794922);
    effector:SetKey(_TRACK_X, 2.28, 840.560806274414);
    effector:SetKey(_TRACK_Y, 2.28, 490.418914794922);
    effector:SetKey(_TRACK_X, 2.36, 837.560806274414);
    effector:SetKey(_TRACK_Y, 2.36, 493.918914794922);
    effector:SetKey(_TRACK_X, 2.56, 832.560806274414);
    effector:SetKey(_TRACK_Y, 2.56, 504.918914794922);
    effector:SetKey(_TRACK_X, 2.88, 821.560806274414);
    effector:SetKey(_TRACK_Y, 2.88, 513.918914794922);
    effector:SetKey(_TRACK_X, 3.88, 788.560806274414);
    effector:SetKey(_TRACK_Y, 3.88, 512.418914794922);
    effector:SetKey(_TRACK_X, 4.12, 782.810806274414);
    effector:SetKey(_TRACK_Y, 4.12, 492.668914794922);
    effector:SetKey(_TRACK_X, 4.44, 783.310806274414);
    effector:SetKey(_TRACK_Y, 4.44, 478.668914794922);
    effector:SetKey(_TRACK_X, 4.64, 781.310806274414);
    effector:SetKey(_TRACK_Y, 4.64, 467.168914794922);
    effector:SetKey(_TRACK_X, 4.88, 783.810806274414);
    effector:SetKey(_TRACK_Y, 4.88, 459.668914794922);
    effector:SetKey(_TRACK_X, 5.12, 780.560806274414);
    effector:SetKey(_TRACK_Y, 5.12, 452.918914794922);
    effector:SetKey(_TRACK_X, 5.32, 775.060806274414);
    effector:SetKey(_TRACK_Y, 5.32, 448.668914794922);
    effector:SetKey(_TRACK_X, 5.52, 767.810806274414);
    effector:SetKey(_TRACK_Y, 5.52, 446.418914794922);
    effector:SetKey(_TRACK_X, 5.88, 751.310806274414);
    effector:SetKey(_TRACK_Y, 5.88, 444.043914794922);
    effector:SetKey(_TRACK_X, 6.08, 742.935806274414);
    effector:SetKey(_TRACK_Y, 6.08, 440.543914794922);
    effector:SetKey(_TRACK_X, 6.32, 733.435806274414);
    effector:SetKey(_TRACK_Y, 6.32, 438.043914794922);
    effector:SetKey(_TRACK_X, 6.56, 721.935806274414);
    effector:SetKey(_TRACK_Y, 6.56, 437.543914794922);
    effector:SetKey(_TRACK_X, 6.84, 709.685806274414);
    effector:SetKey(_TRACK_Y, 6.84, 442.043914794922);
    effector:SetKey(_TRACK_X, 7.16, 699.935806274414);
    effector:SetKey(_TRACK_Y, 7.16, 450.293914794922);
    effector:SetKey(_TRACK_X, 7.56, 688.935806274414);
    effector:SetKey(_TRACK_Y, 7.56, 459.543914794922);
    effector:SetKey(_TRACK_X, 7.96, 676.185806274414);
    effector:SetKey(_TRACK_Y, 7.96, 463.543914794922);
    effector:SetKey(_TRACK_X, 8.84, 632.435806274414);
    effector:SetKey(_TRACK_Y, 8.84, 469.543914794922);
    effector:SetKey(_TRACK_X, 9.16, 623.185806274414);
    effector:SetKey(_TRACK_Y, 9.16, 469.293914794922);
    effector:SetKey(_TRACK_X, 9.44, 613.935806274414);
    effector:SetKey(_TRACK_Y, 9.44, 473.793914794922);
    effector:SetKey(_TRACK_X, 9.64, 607.435806274414);
    effector:SetKey(_TRACK_Y, 9.64, 483.293914794922);
    effector:SetKey(_TRACK_X, 9.92, 599.685806274414);
    effector:SetKey(_TRACK_Y, 9.92, 508.043914794922);
    effector:SetKey(_TRACK_SX, 0, 1.5);
    effector:SetKey(_TRACK_SY, 0, 1.5);
    effector:SetKey(_TRACK_SX, 2.36, 0.8);
    effector:SetKey(_TRACK_SY, 2.36, 0.8);
    effector:SetKey(_TRACK_SX, 3.88, 0.6);
    effector:SetKey(_TRACK_SY, 3.88, 0.6);
    effector:SetKey(_TRACK_O, 0, 1);
    effector:SetKey(_TRACK_O, 2.36, 1);
    effector:SetKey(_TRACK_O, 2.44, 0);
    effector:SetKey(_TRACK_O, 4.04, 0);
    effector:SetKey(_TRACK_O, 4.12, 1);
    effector:SetKey(_TRACK_O, 5.44, 1);
    effector:SetKey(_TRACK_O, 5.48, 0);
    effector:SetKey(_TRACK_O, 5.8, 0);
    effector:SetKey(_TRACK_O, 5.84, 1);
    effector:SetKey(_TRACK_O, 6.44, 1);
    effector:SetKey(_TRACK_O, 6.48, 0);
    effector:SetKey(_TRACK_O, 6.56, 0);
    effector:SetKey(_TRACK_O, 6.64, 1);
    effector:SetKey(_TRACK_O, 7.96, 1);
    effector:SetKey(_TRACK_O, 8.04, 0);
    effector:SetKey(_TRACK_O, 8.68, 0);
    effector:SetKey(_TRACK_O, 8.76, 1);
    effector:SetKey(_TRACK_O, 9.84, 1);
    effector:SetKey(_TRACK_O, 9.88, 0);

    effector:Play();

    compositionFly3:Play();

    return compositionFly3;
end

createCompositionScolopendra = function()

    local compositionScolopendra = CreateCompositionSequence();
    local compositionDuration = 10;
    compositionScolopendra:SetDuration(compositionDuration);


    -- Layer Layer_1
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Scolop_head01.png');
    element:SetName('Layer_1');
    compositionScolopendra:AddElement(element);
    element:SetHotSpot(57.375, 82.75);
    element:SetParentElement(compositionScolopendra);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_X, 0, 1058);
    effector:SetKey(_TRACK_Y, 0, 122);
    effector:SetKey(_TRACK_X, 0.24, 1023.5);
    effector:SetKey(_TRACK_Y, 0.24, 120);
    effector:SetKey(_TRACK_X, 0.44, 995.5);
    effector:SetKey(_TRACK_Y, 0.44, 109.5);
    effector:SetKey(_TRACK_X, 0.64, 976);
    effector:SetKey(_TRACK_Y, 0.64, 86);
    effector:SetKey(_TRACK_X, 0.96, 951);
    effector:SetKey(_TRACK_Y, 0.96, 74);
    effector:SetKey(_TRACK_X, 1.24, 922.5);
    effector:SetKey(_TRACK_Y, 1.24, 75.5);
    effector:SetKey(_TRACK_X, 1.48, 902.5);
    effector:SetKey(_TRACK_Y, 1.48, 93);
    effector:SetKey(_TRACK_X, 1.8, 868.5);
    effector:SetKey(_TRACK_Y, 1.8, 104);
    effector:SetKey(_TRACK_X, 2.08, 839.5);
    effector:SetKey(_TRACK_Y, 2.08, 102.5);
    effector:SetKey(_TRACK_X, 2.4, 807.5);
    effector:SetKey(_TRACK_Y, 2.4, 95.5);
    effector:SetKey(_TRACK_X, 2.68, 788.5);
    effector:SetKey(_TRACK_Y, 2.68, 75.5);
    effector:SetKey(_TRACK_X, 2.96, 788);
    effector:SetKey(_TRACK_Y, 2.96, 45.5);
    effector:SetKey(_TRACK_X, 3.24, 777);
    effector:SetKey(_TRACK_Y, 3.24, 29);
    effector:SetKey(_TRACK_X, 3.52, 756.5);
    effector:SetKey(_TRACK_Y, 3.52, 26);
    effector:SetKey(_TRACK_X, 3.8, 736.5);
    effector:SetKey(_TRACK_Y, 3.8, 33.5);
    effector:SetKey(_TRACK_X, 4.08, 714);
    effector:SetKey(_TRACK_Y, 4.08, 39.5);
    effector:SetKey(_TRACK_X, 4.36, 691);
    effector:SetKey(_TRACK_Y, 4.36, 30.5);
    effector:SetKey(_TRACK_X, 4.64, 671);
    effector:SetKey(_TRACK_Y, 4.64, 14);
    effector:SetKey(_TRACK_X, 4.92, 646.5);
    effector:SetKey(_TRACK_Y, 4.92, 6);
    effector:SetKey(_TRACK_X, 5.2, 619);
    effector:SetKey(_TRACK_Y, 5.2, 9);
    effector:SetKey(_TRACK_X, 5.44, 589);
    effector:SetKey(_TRACK_Y, 5.44, 10);
    effector:SetKey(_TRACK_X, 5.68, 557.5);
    effector:SetKey(_TRACK_Y, 5.68, 7);
    effector:SetKey(_TRACK_X, 5.96, 528.5);
    effector:SetKey(_TRACK_Y, 5.96, 8.5);
    effector:SetKey(_TRACK_X, 6.2, 503);
    effector:SetKey(_TRACK_Y, 6.2, 12.5);
    effector:SetKey(_TRACK_X, 6.48, 480.5);
    effector:SetKey(_TRACK_Y, 6.48, 22);
    effector:SetKey(_TRACK_X, 6.76, 459);
    effector:SetKey(_TRACK_Y, 6.76, 27);
    effector:SetKey(_TRACK_X, 7, 438.5);
    effector:SetKey(_TRACK_Y, 7, 18.5);
    effector:SetKey(_TRACK_X, 7.24, 423);
    effector:SetKey(_TRACK_Y, 7.24, 2.5);
    effector:SetKey(_TRACK_X, 7.52, 403);
    effector:SetKey(_TRACK_Y, 7.52, -8.5);
    effector:SetKey(_TRACK_X, 7.8, 381);
    effector:SetKey(_TRACK_Y, 7.8, -13);
    effector:SetKey(_TRACK_X, 8.04, 361.5);
    effector:SetKey(_TRACK_Y, 8.04, 0);
    effector:SetKey(_TRACK_X, 8.32, 346.5);
    effector:SetKey(_TRACK_Y, 8.32, 17.5);
    effector:SetKey(_TRACK_X, 8.6, 324);
    effector:SetKey(_TRACK_Y, 8.6, 28);
    effector:SetKey(_TRACK_X, 8.88, 301);
    effector:SetKey(_TRACK_Y, 8.88, 25);
    effector:SetKey(_TRACK_X, 9.16, 281.5);
    effector:SetKey(_TRACK_Y, 9.16, 13.5);
    effector:SetKey(_TRACK_X, 9.44, 267);
    effector:SetKey(_TRACK_Y, 9.44, -3);
    effector:SetKey(_TRACK_X, 9.68, 258);
    effector:SetKey(_TRACK_Y, 9.68, -32);
    effector:SetKey(_TRACK_X, 9.96, 255.5);
    effector:SetKey(_TRACK_Y, 9.96, -71);
    effector:SetKey(_TRACK_SX, 0, 0.4);
    effector:SetKey(_TRACK_SY, 0, 0.4);
    effector:SetKey(_TRACK_SX, 1.44, 0.35);
    effector:SetKey(_TRACK_SY, 1.44, 0.35);
    effector:SetKey(_TRACK_SX, 2.2, 0.3);
    effector:SetKey(_TRACK_SY, 2.2, 0.3);
    effector:SetKey(_TRACK_SX, 3.56, 0.25);
    effector:SetKey(_TRACK_SY, 3.56, 0.25);
    effector:SetKey(_TRACK_SX, 5.36, 0.2);
    effector:SetKey(_TRACK_SY, 5.36, 0.2);
    effector:SetKey(_TRACK_SX, 6.72, 0.25);
    effector:SetKey(_TRACK_SY, 6.72, 0.25);
    effector:SetKey(_TRACK_SX, 8.24, 0.3);
    effector:SetKey(_TRACK_SY, 8.24, 0.3);
    effector:SetKey(_TRACK_SX, 9.96, 0.4);
    effector:SetKey(_TRACK_SY, 9.96, 0.4);
    effector:SetKey(_TRACK_A, 0, -1.49354913090956);
    effector:SetKey(_TRACK_A, 0.28, -1.28351488755741);
    effector:SetKey(_TRACK_A, 0.36, -1.17109897821876);
    effector:SetKey(_TRACK_A, 0.48, -0.79679537032979);
    effector:SetKey(_TRACK_A, 0.6, -0.86025704069192);
    effector:SetKey(_TRACK_A, 0.68, -1.08845907489793);
    effector:SetKey(_TRACK_A, 0.76, -1.10656454203467);
    effector:SetKey(_TRACK_A, 0.84, -1.2359974767926);
    effector:SetKey(_TRACK_A, 0.96, -1.57156748664091);
    effector:SetKey(_TRACK_A, 1.04, -1.62749808405128);
    effector:SetKey(_TRACK_A, 1.16, -1.69521822714023);
    effector:SetKey(_TRACK_A, 1.24, -2.23121831001034);
    effector:SetKey(_TRACK_A, 1.44, -2.06760700448541);
    effector:SetKey(_TRACK_A, 1.56, -1.84053519447541);
    effector:SetKey(_TRACK_A, 1.68, -1.87877175506164);
    effector:SetKey(_TRACK_A, 1.8, -1.50975912508597);
    effector:SetKey(_TRACK_A, 1.96, -1.48158928902733);
    effector:SetKey(_TRACK_A, 2.16, -1.31571111459268);
    effector:SetKey(_TRACK_A, 2.36, -0.9833823097056);
    effector:SetKey(_TRACK_A, 2.52, -0.76883440706338);
    effector:SetKey(_TRACK_A, 2.68, -0.15629685115301);
    effector:SetKey(_TRACK_A, 2.84, -0.07172715035526);
    effector:SetKey(_TRACK_A, 2.96, -0.54623651765982);
    effector:SetKey(_TRACK_A, 3.08, -0.76800570252782);
    effector:SetKey(_TRACK_A, 3.28, -1.32850557602361);
    effector:SetKey(_TRACK_A, 3.44, -1.65374628643129);
    effector:SetKey(_TRACK_A, 3.6, -1.94999762453971);
    effector:SetKey(_TRACK_A, 3.76, -1.8219105467249);
    effector:SetKey(_TRACK_A, 3.92, -1.5903680139891);
    effector:SetKey(_TRACK_A, 4.12, -1.19638100133827);
    effector:SetKey(_TRACK_A, 4.28, -1.02332574599448);
    effector:SetKey(_TRACK_A, 4.48, -0.91476236493226);
    effector:SetKey(_TRACK_A, 4.68, -1.25582941351347);
    effector:SetKey(_TRACK_A, 4.88, -1.6140378748643);
    effector:SetKey(_TRACK_A, 5.04, -1.66471590750062);
    effector:SetKey(_TRACK_A, 5.24, -1.60966847300926);
    effector:SetKey(_TRACK_A, 5.44, -1.51177750358431);
    effector:SetKey(_TRACK_A, 5.68, -1.64099694884271);
    effector:SetKey(_TRACK_A, 5.96, -1.7197293261249);
    effector:SetKey(_TRACK_A, 6.24, -1.92872586365794);
    effector:SetKey(_TRACK_A, 6.36, -1.86465313931753);
    effector:SetKey(_TRACK_A, 6.56, -1.79336021923951);
    effector:SetKey(_TRACK_A, 6.76, -1.26286890805281);
    effector:SetKey(_TRACK_A, 6.96, -0.90982802370972);
    effector:SetKey(_TRACK_A, 7.2, -0.98813405082675);
    effector:SetKey(_TRACK_A, 7.4, -1.23897673391146);
    effector:SetKey(_TRACK_A, 7.56, -1.50364308707392);
    effector:SetKey(_TRACK_A, 7.68, -1.81399358307416);
    effector:SetKey(_TRACK_A, 7.88, -2.24083474014455);
    effector:SetKey(_TRACK_A, 8, -2.37966762467048);
    effector:SetKey(_TRACK_A, 8.16, -2.426575671027);
    effector:SetKey(_TRACK_A, 8.36, -2.06799069154272);
    effector:SetKey(_TRACK_A, 8.56, -1.63827856558409);
    effector:SetKey(_TRACK_A, 8.76, -1.32218155271426);
    effector:SetKey(_TRACK_A, 8.96, -0.98522982689979);
    effector:SetKey(_TRACK_A, 9.16, -0.68781075330952);
    effector:SetKey(_TRACK_A, 9.36, -0.54892813948635);
    effector:SetKey(_TRACK_A, 9.52, -0.29001624627291);
    effector:SetKey(_TRACK_A, 9.72, -0.11829260620905);
    effector:SetKey(_TRACK_A, 9.88, -0.04187120583774);

    effector:Play();


    -- Layer Layer_2
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Scolop_legs[0000-0006].png');
    element:SetName('Layer_2');
    compositionScolopendra:AddElement(element);
    element:SetHotSpot(44.625, 0);
    compositionScolopendra:RegisterParentInfo('Layer_2', 'Layer_1');
    element:SetXY(56.475585970587, 79.75);

    element:SetScaleX(0.85);
    element:SetScaleY(0.85);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.52, 0.05880222533436);
    effector:SetKey(_TRACK_A, 0.56, 0.03450661727181);
    effector:SetKey(_TRACK_A, 0.64, 0.26994963142477);
    effector:SetKey(_TRACK_A, 0.72, 0.23699540383875);
    effector:SetKey(_TRACK_A, 0.8, 0.31545813461067);
    effector:SetKey(_TRACK_A, 0.84, 0.20097957394661);
    effector:SetKey(_TRACK_A, 0.88, 0.11530721097356);
    effector:SetKey(_TRACK_A, 1, 0.11475395189905);
    effector:SetKey(_TRACK_A, 1.28, 0.324096552154);
    effector:SetKey(_TRACK_A, 1.36, 0.02314782404878);
    effector:SetKey(_TRACK_A, 1.48, -0.09300394613523);
    effector:SetKey(_TRACK_A, 1.6, -0.16444988400688);
    effector:SetKey(_TRACK_A, 1.72, -0.05947173385257);
    effector:SetKey(_TRACK_A, 1.88, -0.27870381759276);
    effector:SetKey(_TRACK_A, 2.04, -0.16281738445415);
    effector:SetKey(_TRACK_A, 2.16, -0.07597592197505);
    effector:SetKey(_TRACK_A, 2.28, -0.13115832686566);
    effector:SetKey(_TRACK_A, 2.4, -0.38274774555302);
    effector:SetKey(_TRACK_A, 2.52, -0.19622648297878);
    effector:SetKey(_TRACK_A, 2.64, -0.29029701587189);
    effector:SetKey(_TRACK_A, 2.76, -0.17213281641087);
    effector:SetKey(_TRACK_A, 2.88, 0.03484950567971);
    effector:SetKey(_TRACK_A, 3, 0.29935796671468);
    effector:SetKey(_TRACK_A, 3.12, 0.29158029441323);
    effector:SetKey(_TRACK_A, 3.28, 0.41187286682016);
    effector:SetKey(_TRACK_A, 3.44, 0.25601225094126);
    effector:SetKey(_TRACK_A, 3.6, 0.19607159273289);
    effector:SetKey(_TRACK_A, 3.8, -0.07366392462862);
    effector:SetKey(_TRACK_A, 3.96, -0.34569532847936);
    effector:SetKey(_TRACK_A, 4.12, -0.46395245807432);
    effector:SetKey(_TRACK_A, 4.24, -0.1357227918152);
    effector:SetKey(_TRACK_A, 4.44, -0.20279128041858);
    effector:SetKey(_TRACK_A, 4.64, 0.13464043290033);
    effector:SetKey(_TRACK_A, 4.84, 0.23906153439648);
    effector:SetKey(_TRACK_A, 5, -0.0048180976706);
    effector:SetKey(_TRACK_A, 5.16, -0.12410678086199);
    effector:SetKey(_TRACK_A, 5.36, -0.08596285790389);
    effector:SetKey(_TRACK_A, 5.56, 0.09151136371033);
    effector:SetKey(_TRACK_A, 5.72, 0.11538111588527);
    effector:SetKey(_TRACK_A, 5.96, 0.07846116197169);
    effector:SetKey(_TRACK_A, 6.24, 0.03163810371315);
    effector:SetKey(_TRACK_A, 6.44, -0.11315717389576);
    effector:SetKey(_TRACK_A, 6.68, -0.36010816321717);
    effector:SetKey(_TRACK_A, 6.92, -0.29878919576189);
    effector:SetKey(_TRACK_A, 7.08, -0.02644153677787);
    effector:SetKey(_TRACK_A, 7.24, 0.21950667244465);
    effector:SetKey(_TRACK_A, 7.36, 0.39987042718035);
    effector:SetKey(_TRACK_A, 7.48, 0.45819327241367);
    effector:SetKey(_TRACK_A, 8.04, 0.20324342378907);
    effector:SetKey(_TRACK_A, 8.2, -0.14402955994253);
    effector:SetKey(_TRACK_A, 8.28, -0.36928817239306);
    effector:SetKey(_TRACK_A, 8.44, -0.43079188092812);
    effector:SetKey(_TRACK_A, 8.6, -0.46805225457886);
    effector:SetKey(_TRACK_A, 8.8, -0.30883467500049);
    effector:SetKey(_TRACK_A, 8.96, -0.19834865823333);
    effector:SetKey(_TRACK_A, 9.4, -0.13983812628868);
    effector:SetKey(_TRACK_A, 9.64, -0.18758701794832);

    effector:Play();


    -- Layer Layer_3
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Scolop_legs[0000-0006].png');
    element:SetName('Layer_3');
    compositionScolopendra:AddElement(element);
    element:SetHotSpot(44.625, 0);
    compositionScolopendra:RegisterParentInfo('Layer_3', 'Layer_2');
    element:SetXY(45.1540670761253, 18.8235294117647);

    element:SetScaleX(-1.05882352941176);
    element:SetScaleY(1.05882352941176);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.4, -0.21525669954159);
    effector:SetKey(_TRACK_A, 0.52, -0.1757495535742);
    effector:SetKey(_TRACK_A, 0.6, 0.02581035595325);
    effector:SetKey(_TRACK_A, 0.72, -0.11469284264114);
    effector:SetKey(_TRACK_A, 1, 0.28449065989571);
    effector:SetKey(_TRACK_A, 1.12, -0.09791713246193);
    effector:SetKey(_TRACK_A, 1.24, 0.47039847114865);
    effector:SetKey(_TRACK_A, 1.32, 0.04063771050144);
    effector:SetKey(_TRACK_A, 1.44, -0.18426784129435);
    effector:SetKey(_TRACK_A, 1.6, -0.03421840333103);
    effector:SetKey(_TRACK_A, 1.76, -0.17333847075138);
    effector:SetKey(_TRACK_A, 1.92, 0.05273907133239);
    effector:SetKey(_TRACK_A, 2.12, 0.01026948822522);
    effector:SetKey(_TRACK_A, 2.36, -0.02227856285491);
    effector:SetKey(_TRACK_A, 2.6, -0.14610789054177);
    effector:SetKey(_TRACK_A, 2.8, -0.02782997787404);
    effector:SetKey(_TRACK_A, 2.96, 0.26313108671714);
    effector:SetKey(_TRACK_A, 3.12, 0.05770906434259);
    effector:SetKey(_TRACK_A, 3.52, 0.19566334947314);
    effector:SetKey(_TRACK_A, 3.76, 0.04856114944372);
    effector:SetKey(_TRACK_A, 4.32, -0.09027022749486);
    effector:SetKey(_TRACK_A, 4.48, 0.20765947864652);
    effector:SetKey(_TRACK_A, 4.64, 0.13160715106453);
    effector:SetKey(_TRACK_A, 4.96, 0.33147317044117);
    effector:SetKey(_TRACK_A, 5.16, 0.11240944724443);
    effector:SetKey(_TRACK_A, 5.4, -0.05054546421021);
    effector:SetKey(_TRACK_A, 5.64, 0.08011691701294);
    effector:SetKey(_TRACK_A, 5.8, -0.07482079408608);
    effector:SetKey(_TRACK_A, 6, 0.02735131125623);
    effector:SetKey(_TRACK_A, 6.24, 0.0036167661952);
    effector:SetKey(_TRACK_A, 6.48, -0.04266065824626);
    effector:SetKey(_TRACK_A, 6.68, 0.04113897464098);
    effector:SetKey(_TRACK_A, 6.88, -0.03239838305363);
    effector:SetKey(_TRACK_A, 7.08, 0.04863553961127);
    effector:SetKey(_TRACK_A, 7.44, 0.17229932282474);
    effector:SetKey(_TRACK_A, 8.16, -0.05755267040163);
    effector:SetKey(_TRACK_A, 8.32, 0.04357195628319);
    effector:SetKey(_TRACK_A, 8.52, -0.03229606638349);
    effector:SetKey(_TRACK_A, 8.76, -0.05085484849119);
    effector:SetKey(_TRACK_A, 9, -0.17341481758735);
    effector:SetKey(_TRACK_A, 9.28, -0.22244599602414);
    effector:SetKey(_TRACK_A, 9.56, -0.17293140461321);
    effector:SetKey(_TRACK_A, 9.92, -0.00384283142955);

    effector:Play();


    -- Layer Layer_4
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Scolop_legs[0000-0006].png');
    element:SetName('Layer_4');
    compositionScolopendra:AddElement(element);
    element:SetHotSpot(44.625, 0);
    compositionScolopendra:RegisterParentInfo('Layer_4', 'Layer_3');
    element:SetXY(46.6236978431401, 19.4444444444444);

    element:SetScaleX(-1.11111111111111);
    element:SetScaleY(1.11111111111111);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_A, 0.28, 0.05074376820518);
    effector:SetKey(_TRACK_A, 0.4, 0.15138249749503);
    effector:SetKey(_TRACK_A, 0.52, 0.07639412910407);
    effector:SetKey(_TRACK_A, 0.72, -0.02831087738626);
    effector:SetKey(_TRACK_A, 0.84, 0.04832612992717);
    effector:SetKey(_TRACK_A, 1.04, -0.01564098896407);
    effector:SetKey(_TRACK_A, 1.24, 0.05366237123067);
    effector:SetKey(_TRACK_A, 1.4, -0.18987265965678);
    effector:SetKey(_TRACK_A, 1.56, 0.04541260168661);
    effector:SetKey(_TRACK_A, 1.72, 0.10880373043255);
    effector:SetKey(_TRACK_A, 2, 0.10581201387017);
    effector:SetKey(_TRACK_A, 2.32, 0.09205860205754);
    effector:SetKey(_TRACK_A, 2.56, 0.1426710972518);
    effector:SetKey(_TRACK_A, 2.8, 0.28750829502363);
    effector:SetKey(_TRACK_A, 2.96, 0.03621035995515);
    effector:SetKey(_TRACK_A, 3.16, -0.20321809974189);
    effector:SetKey(_TRACK_A, 3.36, -0.15995101120142);
    effector:SetKey(_TRACK_A, 3.6, -0.07061144344425);
    effector:SetKey(_TRACK_A, 3.8, 0.0466437990113);
    effector:SetKey(_TRACK_A, 4.2, 0.2108299355028);
    effector:SetKey(_TRACK_A, 4.44, 0.09396200023854);
    effector:SetKey(_TRACK_A, 4.68, 0.05474183824863);
    effector:SetKey(_TRACK_A, 4.96, 0.14628362694851);
    effector:SetKey(_TRACK_A, 5.24, -0.01537811939749);
    effector:SetKey(_TRACK_A, 5.48, 0.11573380659293);
    effector:SetKey(_TRACK_A, 5.84, -0.06775971747188);
    effector:SetKey(_TRACK_A, 6.04, 0.03829365596193);
    effector:SetKey(_TRACK_A, 6.28, -0.1534878730289);
    effector:SetKey(_TRACK_A, 6.4, -0.05327160509227);
    effector:SetKey(_TRACK_A, 6.68, 0.10725567263648);
    effector:SetKey(_TRACK_A, 6.84, 0.30345690567431);
    effector:SetKey(_TRACK_A, 7, 0.2504041324453);
    effector:SetKey(_TRACK_A, 7.2, 0.17819973868849);
    effector:SetKey(_TRACK_A, 7.4, 0.03385639173641);
    effector:SetKey(_TRACK_A, 7.48, 0.12515721601894);
    effector:SetKey(_TRACK_A, 8.08, 0.12185620178921);
    effector:SetKey(_TRACK_A, 8.28, 0.15106576826959);
    effector:SetKey(_TRACK_A, 8.56, 0.18715582195735);
    effector:SetKey(_TRACK_A, 8.72, 0.16510813231387);
    effector:SetKey(_TRACK_A, 8.92, 0.19999854349984);
    effector:SetKey(_TRACK_A, 9.2, 0.12292654177911);
    effector:SetKey(_TRACK_A, 9.44, 0.05141981441496);

    effector:Play();


    -- Layer Layer_5
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Scolop_legs[0000-0006].png');
    element:SetName('Layer_5');
    compositionScolopendra:AddElement(element);
    element:SetHotSpot(44.625, 0);
    compositionScolopendra:RegisterParentInfo('Layer_5', 'Layer_4');
    element:SetXY(45.0747070147065, 19.0000000000001);

    element:SetScaleX(-1);
    element:SetScaleY(1);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_A, 0.4, 0);
    effector:SetKey(_TRACK_A, 0.52, -0.2753339976759);
    effector:SetKey(_TRACK_A, 0.64, -0.22630585804304);
    effector:SetKey(_TRACK_A, 0.8, -0.04763933484517);
    effector:SetKey(_TRACK_A, 0.96, 0.41154345713032);
    effector:SetKey(_TRACK_A, 1.08, 0.28659831419192);
    effector:SetKey(_TRACK_A, 1.2, 0.09473912272994);
    effector:SetKey(_TRACK_A, 1.36, 0.45590120906669);
    effector:SetKey(_TRACK_A, 1.48, 0.02323751886016);
    effector:SetKey(_TRACK_A, 1.56, -0.08633758811844);
    effector:SetKey(_TRACK_A, 1.76, -0.02417044389008);
    effector:SetKey(_TRACK_A, 1.96, 0.00857114583457);
    effector:SetKey(_TRACK_A, 2.2, -0.09872568845508);
    effector:SetKey(_TRACK_A, 2.44, 0.06847390657049);
    effector:SetKey(_TRACK_A, 2.64, -0.01505662334564);
    effector:SetKey(_TRACK_A, 2.8, -0.03445508447082);
    effector:SetKey(_TRACK_A, 3.2, 0.19733156833892);
    effector:SetKey(_TRACK_A, 3.4, 0.32556031120479);
    effector:SetKey(_TRACK_A, 3.8, 0.24805140684034);
    effector:SetKey(_TRACK_A, 4.04, 0.08242299617729);
    effector:SetKey(_TRACK_A, 4.2, -0.12818826470424);
    effector:SetKey(_TRACK_A, 4.44, -0.03412662174303);
    effector:SetKey(_TRACK_A, 4.56, -0.10453512951852);
    effector:SetKey(_TRACK_A, 4.88, 0.12509514887605);
    effector:SetKey(_TRACK_A, 5.16, 0.10929265821444);
    effector:SetKey(_TRACK_A, 5.6, -0.13736901303171);
    effector:SetKey(_TRACK_A, 5.8, 0.08138015564104);
    effector:SetKey(_TRACK_A, 6.16, 0.09049299707542);
    effector:SetKey(_TRACK_A, 6.4, 0.05339520191678);
    effector:SetKey(_TRACK_A, 6.64, 0.08151740731241);
    effector:SetKey(_TRACK_A, 6.88, 0.05604969837287);
    effector:SetKey(_TRACK_A, 7, -0.13475284558904);
    effector:SetKey(_TRACK_A, 7.6, 0.20794522494667);
    effector:SetKey(_TRACK_A, 8.36, 0.15729689143446);
    effector:SetKey(_TRACK_A, 8.56, 0.06826256849764);
    effector:SetKey(_TRACK_A, 8.8, -0.02813468478443);
    effector:SetKey(_TRACK_A, 9.2, -0.04770408597905);
    effector:SetKey(_TRACK_A, 9.48, -0.14352986164007);
    effector:SetKey(_TRACK_A, 9.92, -0.08959152153263);

    effector:Play();


    -- Layer Layer_6
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Scolop_legs[0000-0006].png');
    element:SetName('Layer_6');
    compositionScolopendra:AddElement(element);
    element:SetHotSpot(44.625, 0);
    compositionScolopendra:RegisterParentInfo('Layer_6', 'Layer_5');
    element:SetXY(45.9741210441196, 18);

    element:SetScaleX(-0.9);
    element:SetScaleY(0.9);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_A, 0.64, -0.03117327816031);
    effector:SetKey(_TRACK_A, 0.88, -0.10718641986684);
    effector:SetKey(_TRACK_A, 1.08, -0.09156429241716);
    effector:SetKey(_TRACK_A, 1.36, -0.00551456804374);
    effector:SetKey(_TRACK_A, 1.52, -0.156182109867);
    effector:SetKey(_TRACK_A, 1.72, -0.01845887005145);
    effector:SetKey(_TRACK_A, 1.92, 0.06111194381091);
    effector:SetKey(_TRACK_A, 2.8, 0.08911870963731);
    effector:SetKey(_TRACK_A, 3.32, -0.0580897278851);
    effector:SetKey(_TRACK_A, 3.96, -0.02249493443568);
    effector:SetKey(_TRACK_A, 4.6, -0.05083713630833);
    effector:SetKey(_TRACK_A, 5, 0.01842280563856);
    effector:SetKey(_TRACK_A, 5.36, -0.09215047321877);
    effector:SetKey(_TRACK_A, 5.68, -0.03856644955105);
    effector:SetKey(_TRACK_A, 6, 0.10765788895562);
    effector:SetKey(_TRACK_A, 6.24, 0.08770456661729);
    effector:SetKey(_TRACK_A, 6.6, -0.01749485355681);
    effector:SetKey(_TRACK_A, 6.84, 0.13015010724308);
    effector:SetKey(_TRACK_A, 7.56, -0.01184231121875);
    effector:SetKey(_TRACK_A, 7.72, -0.39619893766645);
    effector:SetKey(_TRACK_A, 8.4, -0.11631984819144);
    effector:SetKey(_TRACK_A, 8.64, 0.00888845855829);
    effector:SetKey(_TRACK_A, 8.92, 0.13452761501207);
    effector:SetKey(_TRACK_A, 9.16, 0.20553262471997);
    effector:SetKey(_TRACK_A, 9.4, 0.14049388836553);
    effector:SetKey(_TRACK_A, 9.68, -0.0117771671661);

    effector:Play();


    -- Layer Layer_7
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Scolop_legs[0000-0006].png');
    element:SetName('Layer_7');
    compositionScolopendra:AddElement(element);
    element:SetHotSpot(44.625, 0);
    compositionScolopendra:RegisterParentInfo('Layer_7', 'Layer_6');
    element:SetXY(45.124674460785, 19.4444444444445);

    element:SetScaleX(-0.88888888888889);
    element:SetScaleY(0.88888888888889);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.6, -0.23919877921202);
    effector:SetKey(_TRACK_A, 0.76, -0.04555724984335);
    effector:SetKey(_TRACK_A, 0.88, 0.10236528458322);
    effector:SetKey(_TRACK_A, 1.04, 0.00245149753158);
    effector:SetKey(_TRACK_A, 1.24, 0.0293639157604);
    effector:SetKey(_TRACK_A, 1.4, 0.09964723439794);
    effector:SetKey(_TRACK_A, 1.56, 0.18155589282757);
    effector:SetKey(_TRACK_A, 1.76, 0.06671496826681);
    effector:SetKey(_TRACK_A, 2.24, -0.01151454067352);
    effector:SetKey(_TRACK_A, 2.56, -0.07315606255942);
    effector:SetKey(_TRACK_A, 2.84, -0.24482381891743);
    effector:SetKey(_TRACK_A, 3.04, -0.00444509215114);
    effector:SetKey(_TRACK_A, 3.28, 0.28023291027034);
    effector:SetKey(_TRACK_A, 3.52, 0.26562218981422);
    effector:SetKey(_TRACK_A, 3.88, -0.08390675945956);
    effector:SetKey(_TRACK_A, 4.32, -0.13510764969446);
    effector:SetKey(_TRACK_A, 4.8, -0.02601031969266);
    effector:SetKey(_TRACK_A, 5.04, 0.04540717443885);
    effector:SetKey(_TRACK_A, 6.24, 0.09433025014521);
    effector:SetKey(_TRACK_A, 6.48, 0.1826622628661);
    effector:SetKey(_TRACK_A, 6.8, -0.1797798067285);
    effector:SetKey(_TRACK_A, 7.08, -0.12795560897794);
    effector:SetKey(_TRACK_A, 7.36, -0.32772448675357);
    effector:SetKey(_TRACK_A, 7.64, 0.06928565239994);
    effector:SetKey(_TRACK_A, 8.6, -0.08242767128336);
    effector:SetKey(_TRACK_A, 8.84, -0.24779597851168);
    effector:SetKey(_TRACK_A, 9.16, -0.19862172737579);
    effector:SetKey(_TRACK_A, 9.48, -0.09198543095699);

    effector:Play();


    -- Layer Layer_8
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Scolop_legs[0000-0006].png');
    element:SetName('Layer_8');
    compositionScolopendra:AddElement(element);
    element:SetHotSpot(44.625, 0);
    compositionScolopendra:RegisterParentInfo('Layer_8', 'Layer_7');
    element:SetXY(45.4119872757364, 19.75);

    element:SetScaleX(-0.875);
    element:SetScaleY(0.875);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_A, 0.04, 0);
    effector:SetKey(_TRACK_A, 0.76, 0.08258121203495);
    effector:SetKey(_TRACK_A, 1.04, 0.17825167594315);
    effector:SetKey(_TRACK_A, 1.32, -0.01142161232301);
    effector:SetKey(_TRACK_A, 1.6, -0.03750861653232);
    effector:SetKey(_TRACK_A, 1.84, 0.22785630767149);
    effector:SetKey(_TRACK_A, 2.12, 0.02647641520062);
    effector:SetKey(_TRACK_A, 2.44, -0.01127559556993);
    effector:SetKey(_TRACK_A, 2.84, 0.25156563442695);
    effector:SetKey(_TRACK_A, 3.16, -0.00651683914225);
    effector:SetKey(_TRACK_A, 3.44, -0.13017450488379);
    effector:SetKey(_TRACK_A, 3.72, -0.22386508584166);
    effector:SetKey(_TRACK_A, 4.08, -0.00569253817346);
    effector:SetKey(_TRACK_A, 4.6, 0.03928531077303);
    effector:SetKey(_TRACK_A, 5.12, -0.10503625056185);
    effector:SetKey(_TRACK_A, 5.48, 0.05524441996987);
    effector:SetKey(_TRACK_A, 6.28, -0.06989903111172);
    effector:SetKey(_TRACK_A, 6.6, 0.00264569462089);
    effector:SetKey(_TRACK_A, 6.92, 0.04152135682088);
    effector:SetKey(_TRACK_A, 7.24, -0.10039903774483);
    effector:SetKey(_TRACK_A, 7.6, -0.25330596213305);
    effector:SetKey(_TRACK_A, 8.52, -0.07212851994342);
    effector:SetKey(_TRACK_A, 8.8, 0.09399206781383);
    effector:SetKey(_TRACK_A, 9.16, -0.00633318686961);
    effector:SetKey(_TRACK_A, 9.52, 0.09718340097876);
    effector:SetKey(_TRACK_A, 9.8, -0.10631823588191);

    effector:Play();


    -- Layer Layer_9
    local element = auxCreateCompositionElement('data/Texture/Scenes/22_NearBalloon/Animations/Env/Scolop_tail01.png');
    element:SetName('Layer_9');
    compositionScolopendra:AddElement(element);
    element:SetHotSpot(17.125, 2.875);
    compositionScolopendra:RegisterParentInfo('Layer_9', 'Layer_8');
    element:SetXY(46.1668526218509, 20.2857142857142);

    element:SetScaleX(1.28571428571429);
    element:SetScaleY(1.28571428571429);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10);

    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.72, 0.38463214662177);
    effector:SetKey(_TRACK_A, 0.96, 0.06127665600338);
    effector:SetKey(_TRACK_A, 1.2, 0.28150614586539);
    effector:SetKey(_TRACK_A, 1.32, 0.22744351362769);
    effector:SetKey(_TRACK_A, 1.56, 0.13015337256281);
    effector:SetKey(_TRACK_A, 1.8, -0.12296059039242);
    effector:SetKey(_TRACK_A, 2.08, -0.05235100504655);
    effector:SetKey(_TRACK_A, 2.36, 0.04527168784348);
    effector:SetKey(_TRACK_A, 2.88, -0.08639927785892);
    effector:SetKey(_TRACK_A, 3.2, 0.03876018504154);
    effector:SetKey(_TRACK_A, 3.6, -0.09123810195765);
    effector:SetKey(_TRACK_A, 4.04, -0.01088930309319);
    effector:SetKey(_TRACK_A, 4.32, -0.0448385628208);
    effector:SetKey(_TRACK_A, 4.64, 0.09206736098831);
    effector:SetKey(_TRACK_A, 5.4, -0.0592335455621);
    effector:SetKey(_TRACK_A, 6.16, 0.03057818785956);
    effector:SetKey(_TRACK_A, 6.6, 0.06076891848377);
    effector:SetKey(_TRACK_A, 6.92, 0.13944594706804);
    effector:SetKey(_TRACK_A, 7.4, -0.36474383505053);
    effector:SetKey(_TRACK_A, 7.68, 0.0307548078445);
    effector:SetKey(_TRACK_A, 8.72, -0.08529293862243);
    effector:SetKey(_TRACK_A, 9.08, 0.01905956991765);
    effector:SetKey(_TRACK_A, 9.52, -0.04559195753222);

    effector:Play();

    compositionScolopendra:Play();

    return compositionScolopendra;
end

