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

function MegoLightEffector()

    -- Layer MegoLight
    local effector = CreateAnimationEffector();
    effector:SetLifeTime(0, 6.56);
    effector:SetMode(_ANIM_LOOP);
    
    effector:SetKey(_TRACK_O, 0, 1);
    effector:SetKey(_TRACK_O, 0.04, 0.73423561480214);
    effector:SetKey(_TRACK_O, 0.0714453125, 1);
    effector:SetKey(_TRACK_O, 0.214296875, 1);
    effector:SetKey(_TRACK_O, 0.24, 0.90011838279464);
    effector:SetKey(_TRACK_O, 0.285703125, 1);
    effector:SetKey(_TRACK_O, 0.32, 0.9805644411393);
    effector:SetKey(_TRACK_O, 0.3571484375, 1);
    effector:SetKey(_TRACK_O, 0.48, 0.99999999643326);
    effector:SetKey(_TRACK_O, 0.52, 0.90386943545711);
    effector:SetKey(_TRACK_O, 0.5714453125, 1);
    effector:SetKey(_TRACK_O, 0.6428515625, 1);
    effector:SetKey(_TRACK_O, 0.68, 0.98434689294222);
    effector:SetKey(_TRACK_O, 0.714296875, 1);
    effector:SetKey(_TRACK_O, 0.76, 1);
    effector:SetKey(_TRACK_O, 0.8, 0.93540234133294);
    effector:SetKey(_TRACK_O, 0.84, 1);
    effector:SetKey(_TRACK_O, 0.88, 0.86698422081345);
    effector:SetKey(_TRACK_O, 0.9285546875, 1);
    effector:SetKey(_TRACK_O, 1, 1);
    effector:SetKey(_TRACK_O, 1.04, 0.90461958078056);
    effector:SetKey(_TRACK_O, 1.0714453125, 1);
    effector:SetKey(_TRACK_O, 1.16, 1);
    effector:SetKey(_TRACK_O, 1.2, 0.95833078063641);
    effector:SetKey(_TRACK_O, 1.24, 1);
    effector:SetKey(_TRACK_O, 1.28, 0.95334517697445);
    effector:SetKey(_TRACK_O, 1.3571484375, 1);
    effector:SetKey(_TRACK_O, 1.4285546875, 1);
    effector:SetKey(_TRACK_O, 1.48, 0.89434635593109);
    effector:SetKey(_TRACK_O, 1.5, 1);
    effector:SetKey(_TRACK_O, 1.5714453125, 1);
    effector:SetKey(_TRACK_O, 1.6, 0.95334518140708);
    effector:SetKey(_TRACK_O, 1.6428515625, 1);
    effector:SetKey(_TRACK_O, 1.68, 0.79366905942034);
    effector:SetKey(_TRACK_O, 1.714296875, 1);
    effector:SetKey(_TRACK_O, 1.76, 1);
    effector:SetKey(_TRACK_O, 1.8, 0.87545675366773);
    effector:SetKey(_TRACK_O, 1.8571484375, 1);
    effector:SetKey(_TRACK_O, 1.88, 0.90647931143558);
    effector:SetKey(_TRACK_O, 1.9285546875, 1);
    effector:SetKey(_TRACK_O, 1.96, 0.88110552865302);
    effector:SetKey(_TRACK_O, 2, 1);
    effector:SetKey(_TRACK_O, 2.04, 0.91012865280471);
    effector:SetKey(_TRACK_O, 2.0714453125, 1);
    effector:SetKey(_TRACK_O, 2.12, 1);
    effector:SetKey(_TRACK_O, 2.16, 0.98473982244643);
    effector:SetKey(_TRACK_O, 2.214296875, 1);
    effector:SetKey(_TRACK_O, 2.24, 0.93284967358106);
    effector:SetKey(_TRACK_O, 2.285703125, 1);
    effector:SetKey(_TRACK_O, 2.32, 0.9793423929897);
    effector:SetKey(_TRACK_O, 2.3571484375, 1);
    effector:SetKey(_TRACK_O, 2.4, 0.9072868003665);
    effector:SetKey(_TRACK_O, 2.4285546875, 1);
    effector:SetKey(_TRACK_O, 2.48, 1);
    effector:SetKey(_TRACK_O, 2.52, 0.92536451796441);
    effector:SetKey(_TRACK_O, 2.5714453125, 1);
    effector:SetKey(_TRACK_O, 2.68, 1);
    effector:SetKey(_TRACK_O, 2.72, 0.81098983140725);
    effector:SetKey(_TRACK_O, 2.76, 0.98864848001498);
    effector:SetKey(_TRACK_O, 2.8, 0.9528741070149);
    effector:SetKey(_TRACK_O, 2.8571484375, 1);
    effector:SetKey(_TRACK_O, 2.9285546875, 1);
    effector:SetKey(_TRACK_O, 2.96, 0.88925925065851);
    effector:SetKey(_TRACK_O, 3, 1);
    effector:SetKey(_TRACK_O, 3.04, 0.88925925417056);
    effector:SetKey(_TRACK_O, 3.0714453125, 1);
    effector:SetKey(_TRACK_O, 3.12, 0.96675283070009);
    effector:SetKey(_TRACK_O, 3.1428515625, 1);
    effector:SetKey(_TRACK_O, 3.214296875, 1);
    effector:SetKey(_TRACK_O, 3.24, 0.91219694032715);
    effector:SetKey(_TRACK_O, 3.285703125, 1);
    effector:SetKey(_TRACK_O, 3.32, 1);
    effector:SetKey(_TRACK_O, 3.36, 0.9651135803383);
    effector:SetKey(_TRACK_O, 3.4285546875, 1);
    effector:SetKey(_TRACK_O, 3.48, 1);
    effector:SetKey(_TRACK_O, 3.52, 0.81239613720518);
    effector:SetKey(_TRACK_O, 3.5714453125, 1);
    effector:SetKey(_TRACK_O, 3.714296875, 1);
    effector:SetKey(_TRACK_O, 3.76, 0.88648496661405);
    effector:SetKey(_TRACK_O, 3.785703125, 1);
    effector:SetKey(_TRACK_O, 3.8571484375, 1);
    effector:SetKey(_TRACK_O, 3.88, 0.81976590168044);
    effector:SetKey(_TRACK_O, 3.9285546875, 1);
    effector:SetKey(_TRACK_O, 3.96, 0.92305045149346);
    effector:SetKey(_TRACK_O, 4, 1);
    effector:SetKey(_TRACK_O, 4.04, 0.99999998432008);
    effector:SetKey(_TRACK_O, 4.08, 0.88685338588924);
    effector:SetKey(_TRACK_O, 4.12, 1);
    effector:SetKey(_TRACK_O, 4.16, 0.86121680917924);
    effector:SetKey(_TRACK_O, 4.214296875, 1);
    effector:SetKey(_TRACK_O, 4.28, 1);
    effector:SetKey(_TRACK_O, 4.32, 0.96469752288374);
    effector:SetKey(_TRACK_O, 4.3571484375, 1);
    effector:SetKey(_TRACK_O, 4.4, 0.97125654131964);
    effector:SetKey(_TRACK_O, 4.4285546875, 1);
    effector:SetKey(_TRACK_O, 4.48, 1);
    effector:SetKey(_TRACK_O, 4.52, 0.91110497042904);
    effector:SetKey(_TRACK_O, 4.5714453125, 1);
    effector:SetKey(_TRACK_O, 4.714296875, 1);
    effector:SetKey(_TRACK_O, 4.76, 0.78246823565464);
    effector:SetKey(_TRACK_O, 4.785703125, 1);
    effector:SetKey(_TRACK_O, 4.84, 1);
    effector:SetKey(_TRACK_O, 4.88, 0.93372821490669);
    effector:SetKey(_TRACK_O, 4.9285546875, 1);
    effector:SetKey(_TRACK_O, 4.96, 0.88335183144287);
    effector:SetKey(_TRACK_O, 5, 1);
    effector:SetKey(_TRACK_O, 5.04, 0.97306154354038);
    effector:SetKey(_TRACK_O, 5.0714453125, 1);
    effector:SetKey(_TRACK_O, 5.12, 1);
    effector:SetKey(_TRACK_O, 5.16, 0.8527871779432);
    effector:SetKey(_TRACK_O, 5.2, 1);
    effector:SetKey(_TRACK_O, 5.24, 0.89442471833603);
    effector:SetKey(_TRACK_O, 5.285703125, 1);
    effector:SetKey(_TRACK_O, 5.32, 0.94438705380508);
    effector:SetKey(_TRACK_O, 5.3571484375, 1);
    effector:SetKey(_TRACK_O, 5.4285546875, 1);
    effector:SetKey(_TRACK_O, 5.48, 0.95733118195582);
    effector:SetKey(_TRACK_O, 5.5, 1);
    effector:SetKey(_TRACK_O, 5.56, 0.94267273434959);
    effector:SetKey(_TRACK_O, 5.6, 0.99999999954505);
    effector:SetKey(_TRACK_O, 5.76, 1);
    effector:SetKey(_TRACK_O, 5.8, 0.9313411429224);
    effector:SetKey(_TRACK_O, 5.8571484375, 1);
    effector:SetKey(_TRACK_O, 6, 1);
    effector:SetKey(_TRACK_O, 6.04, 0.90708513600764);
    effector:SetKey(_TRACK_O, 6.0714453125, 1);
    effector:SetKey(_TRACK_O, 6.12, 0.93094210115203);
    effector:SetKey(_TRACK_O, 6.1428515625, 1);
    effector:SetKey(_TRACK_O, 6.214296875, 1);
    effector:SetKey(_TRACK_O, 6.24, 0.95189188083734);
    effector:SetKey(_TRACK_O, 6.285703125, 1);
    effector:SetKey(_TRACK_O, 6.32, 1);
    effector:SetKey(_TRACK_O, 6.36, 0.74701939137211);
    effector:SetKey(_TRACK_O, 6.4, 1);
    --[[
    effector:SetKey(_TRACK_O, 0.0, 0.0);
	effector:SetKey(_TRACK_O, 1.0, 1.0);
	effector:SetKey(_TRACK_O, 2.0, 0.0);]]

    return effector;
end

--------------------------------------------------------------------------------
function AddFlyingLeavesAnimation(screen, zOffset)

    local movieDuration = 12.68;
    
    -- Layer Dust_1
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust.png");
    anim:SetHotSpot(512, 512);
    anim:SetPosZ(zOffset + 26);
    anim:SetAngle(0);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(11.96, 12.68);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 11.96, 506);
    effector:SetKey(_TRACK_Y, 11.96, 441.5);
    effector:SetKey(_TRACK_X, 14, 504);
    effector:SetKey(_TRACK_Y, 14, 431.5);
    effector:SetKey(_TRACK_SX, 11.96, 1);
    effector:SetKey(_TRACK_SY, 11.96, 1);
    effector:SetKey(_TRACK_SX, 14, 1.07);
    effector:SetKey(_TRACK_SY, 14, 1.07);
    effector:SetKey(_TRACK_O, 11.96, 0);
    effector:SetKey(_TRACK_O, 12.4, 0.75);
    effector:SetKey(_TRACK_O, 13.64, 0.75);
    effector:SetKey(_TRACK_O, 14, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_2
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust.png");
    anim:SetHotSpot(512, 512);
    anim:SetPosZ(zOffset + 25);
    anim:SetAngle(0);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(10.6, 12.68);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 10.6, 506);
    effector:SetKey(_TRACK_Y, 10.6, 441.5);
    effector:SetKey(_TRACK_X, 12.64, 504);
    effector:SetKey(_TRACK_Y, 12.64, 431.5);
    effector:SetKey(_TRACK_SX, 10.6, 1);
    effector:SetKey(_TRACK_SY, 10.6, 1);
    effector:SetKey(_TRACK_SX, 12.64, 1.07);
    effector:SetKey(_TRACK_SY, 12.64, 1.07);
    effector:SetKey(_TRACK_O, 10.6, 0);
    effector:SetKey(_TRACK_O, 11.04, 0.75);
    effector:SetKey(_TRACK_O, 12.28, 0.75);
    effector:SetKey(_TRACK_O, 12.64, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_3
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust.png");
    anim:SetHotSpot(512, 512);
    anim:SetPosZ(zOffset + 24);
    anim:SetAngle(0);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(9.28, 12.68);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 9.28, 506);
    effector:SetKey(_TRACK_Y, 9.28, 441.5);
    effector:SetKey(_TRACK_X, 11.32, 504);
    effector:SetKey(_TRACK_Y, 11.32, 431.5);
    effector:SetKey(_TRACK_SX, 9.28, 1);
    effector:SetKey(_TRACK_SY, 9.28, 1);
    effector:SetKey(_TRACK_SX, 11.32, 1.07);
    effector:SetKey(_TRACK_SY, 11.32, 1.07);
    effector:SetKey(_TRACK_O, 9.28, 0);
    effector:SetKey(_TRACK_O, 9.72, 0.75);
    effector:SetKey(_TRACK_O, 10.96, 0.75);
    effector:SetKey(_TRACK_O, 11.32, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_4
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust.png");
    anim:SetHotSpot(512, 512);
    anim:SetPosZ(zOffset + 23);
    anim:SetAngle(0);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(7.84, 12.68);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 7.84, 506);
    effector:SetKey(_TRACK_Y, 7.84, 441.5);
    effector:SetKey(_TRACK_X, 9.88, 504);
    effector:SetKey(_TRACK_Y, 9.88, 431.5);
    effector:SetKey(_TRACK_SX, 7.84, 1);
    effector:SetKey(_TRACK_SY, 7.84, 1);
    effector:SetKey(_TRACK_SX, 9.88, 1.07);
    effector:SetKey(_TRACK_SY, 9.88, 1.07);
    effector:SetKey(_TRACK_O, 7.84, 0);
    effector:SetKey(_TRACK_O, 8.28, 0.75);
    effector:SetKey(_TRACK_O, 9.52, 0.75);
    effector:SetKey(_TRACK_O, 9.88, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_5
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust.png");
    anim:SetHotSpot(512, 512);
    anim:SetPosZ(zOffset + 22);
    anim:SetAngle(0);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(6.48, 12.68);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 6.48, 506);
    effector:SetKey(_TRACK_Y, 6.48, 441.5);
    effector:SetKey(_TRACK_X, 8.52, 504);
    effector:SetKey(_TRACK_Y, 8.52, 431.5);
    effector:SetKey(_TRACK_SX, 6.48, 1);
    effector:SetKey(_TRACK_SY, 6.48, 1);
    effector:SetKey(_TRACK_SX, 8.52, 1.07);
    effector:SetKey(_TRACK_SY, 8.52, 1.07);
    effector:SetKey(_TRACK_O, 6.48, 0);
    effector:SetKey(_TRACK_O, 6.92, 0.75);
    effector:SetKey(_TRACK_O, 8.16, 0.75);
    effector:SetKey(_TRACK_O, 8.52, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_6
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust.png");
    anim:SetHotSpot(512, 512);
    anim:SetPosZ(zOffset + 21);
    anim:SetAngle(0);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(4.84, 12.68);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 4.84, 506);
    effector:SetKey(_TRACK_Y, 4.84, 441.5);
    effector:SetKey(_TRACK_X, 6.88, 504);
    effector:SetKey(_TRACK_Y, 6.88, 431.5);
    effector:SetKey(_TRACK_SX, 4.84, 1);
    effector:SetKey(_TRACK_SY, 4.84, 1);
    effector:SetKey(_TRACK_SX, 6.88, 1.07);
    effector:SetKey(_TRACK_SY, 6.88, 1.07);
    effector:SetKey(_TRACK_O, 4.84, 0);
    effector:SetKey(_TRACK_O, 5.28, 0.75);
    effector:SetKey(_TRACK_O, 6.52, 0.75);
    effector:SetKey(_TRACK_O, 6.88, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_7
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust.png");
    anim:SetHotSpot(512, 512);
    anim:SetPosZ(zOffset + 20);
    anim:SetAngle(0);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(3.48, 12.68);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 3.48, 506);
    effector:SetKey(_TRACK_Y, 3.48, 441.5);
    effector:SetKey(_TRACK_X, 5.52, 504);
    effector:SetKey(_TRACK_Y, 5.52, 431.5);
    effector:SetKey(_TRACK_SX, 3.48, 1);
    effector:SetKey(_TRACK_SY, 3.48, 1);
    effector:SetKey(_TRACK_SX, 5.52, 1.07);
    effector:SetKey(_TRACK_SY, 5.52, 1.07);
    effector:SetKey(_TRACK_O, 3.48, 0);
    effector:SetKey(_TRACK_O, 3.92, 0.75);
    effector:SetKey(_TRACK_O, 5.16, 0.75);
    effector:SetKey(_TRACK_O, 5.52, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_8
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust.png");
    anim:SetHotSpot(512, 512);
    anim:SetPosZ(zOffset + 19);
    anim:SetAngle(0);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(2.16, 12.68);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 2.16, 506);
    effector:SetKey(_TRACK_Y, 2.16, 441.5);
    effector:SetKey(_TRACK_X, 4.2, 504);
    effector:SetKey(_TRACK_Y, 4.2, 431.5);
    effector:SetKey(_TRACK_SX, 2.16, 1);
    effector:SetKey(_TRACK_SY, 2.16, 1);
    effector:SetKey(_TRACK_SX, 4.2, 1.07);
    effector:SetKey(_TRACK_SY, 4.2, 1.07);
    effector:SetKey(_TRACK_O, 2.16, 0);
    effector:SetKey(_TRACK_O, 2.6, 0.75);
    effector:SetKey(_TRACK_O, 3.84, 0.75);
    effector:SetKey(_TRACK_O, 4.2, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_9
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust.png");
    anim:SetHotSpot(512, 512);
    anim:SetPosZ(zOffset + 18);
    anim:SetAngle(0);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.72, 12.68);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.72, 506);
    effector:SetKey(_TRACK_Y, 0.72, 441.5);
    effector:SetKey(_TRACK_X, 2.76, 504);
    effector:SetKey(_TRACK_Y, 2.76, 431.5);
    effector:SetKey(_TRACK_SX, 0.72, 1);
    effector:SetKey(_TRACK_SY, 0.72, 1);
    effector:SetKey(_TRACK_SX, 2.76, 1.07);
    effector:SetKey(_TRACK_SY, 2.76, 1.07);
    effector:SetKey(_TRACK_O, 0.72, 0);
    effector:SetKey(_TRACK_O, 1.16, 0.75);
    effector:SetKey(_TRACK_O, 2.4, 0.75);
    effector:SetKey(_TRACK_O, 2.76, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_10
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust.png");
    anim:SetHotSpot(512, 512);
    anim:SetPosZ(zOffset + 17);
    anim:SetAngle(0);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(-0.64, 12.68);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, -0.64, 506);
    effector:SetKey(_TRACK_Y, -0.64, 441.5);
    effector:SetKey(_TRACK_X, 1.4, 504);
    effector:SetKey(_TRACK_Y, 1.4, 431.5);
    effector:SetKey(_TRACK_SX, -0.64, 1);
    effector:SetKey(_TRACK_SY, -0.64, 1);
    effector:SetKey(_TRACK_SX, 1.4, 1.07);
    effector:SetKey(_TRACK_SY, 1.4, 1.07);
    effector:SetKey(_TRACK_O, -0.64, 0);
    effector:SetKey(_TRACK_O, -0.2, 0.75);
    effector:SetKey(_TRACK_O, 1.04, 0.75);
    effector:SetKey(_TRACK_O, 1.4, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_11
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 16);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.8, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.8, 1121.59550476074);
    effector:SetKey(_TRACK_Y, 0.8, 509.185394287109);
    effector:SetKey(_TRACK_X, 1.96, -156);
    effector:SetKey(_TRACK_Y, 1.96, 440.5);
    effector:SetKey(_TRACK_SX, 0.8, 0.85);
    effector:SetKey(_TRACK_SY, 0.8, 0.85);
    effector:SetKey(_TRACK_SX, 1.96, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.96, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0.8, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.96, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0.8, 0);
    effector:SetKey(_TRACK_O, 0.96, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.76, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.96, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_12
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 15);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.72, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.72, 1157.55056762695);
    effector:SetKey(_TRACK_Y, 0.72, 549.934463500977);
    effector:SetKey(_TRACK_X, 1.88, -156);
    effector:SetKey(_TRACK_Y, 1.88, 440.5);
    effector:SetKey(_TRACK_SX, 0.72, 0.85);
    effector:SetKey(_TRACK_SY, 0.72, 0.85);
    effector:SetKey(_TRACK_SX, 1.88, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.88, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0.72, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.88, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0.72, 0);
    effector:SetKey(_TRACK_O, 0.88, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.68, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.88, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_13
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 14);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.64, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.64, 1123.99250793457);
    effector:SetKey(_TRACK_Y, 0.64, 424.091766357422);
    effector:SetKey(_TRACK_X, 1.8, -154.801498413086);
    effector:SetKey(_TRACK_Y, 1.8, 482.447570800781);
    effector:SetKey(_TRACK_SX, 0.64, 0.85);
    effector:SetKey(_TRACK_SY, 0.64, 0.85);
    effector:SetKey(_TRACK_SX, 1.8, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.8, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0.64, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.8, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0.64, 0);
    effector:SetKey(_TRACK_O, 0.8, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.6, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.8, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_14
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 13);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.56, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.56, 1127.58801269531);
    effector:SetKey(_TRACK_Y, 0.56, 557.125473022461);
    effector:SetKey(_TRACK_X, 1.72, -157.198501586914);
    effector:SetKey(_TRACK_Y, 1.72, 394.956924438477);
    effector:SetKey(_TRACK_SX, 0.56, 0.85);
    effector:SetKey(_TRACK_SY, 0.56, 0.85);
    effector:SetKey(_TRACK_SX, 1.72, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.72, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0.56, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.72, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0.56, 0);
    effector:SetKey(_TRACK_O, 0.72, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.52, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.72, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_15
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 12);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.48, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.48, 1119.19850158691);
    effector:SetKey(_TRACK_Y, 0.48, 422.893264770508);
    effector:SetKey(_TRACK_X, 1.64, -156);
    effector:SetKey(_TRACK_Y, 1.64, 440.5);
    effector:SetKey(_TRACK_SX, 0.48, 0.85);
    effector:SetKey(_TRACK_SY, 0.48, 0.85);
    effector:SetKey(_TRACK_SX, 1.64, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.64, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0.48, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.64, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0.48, 0);
    effector:SetKey(_TRACK_O, 0.64, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.44, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.64, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_16
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 11);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.36, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.36, 1123.99250793457);
    effector:SetKey(_TRACK_Y, 0.36, 428.885772705078);
    effector:SetKey(_TRACK_X, 1.52, -159.595504760742);
    effector:SetKey(_TRACK_Y, 1.52, 475.256561279297);
    effector:SetKey(_TRACK_SX, 0.36, 0.85);
    effector:SetKey(_TRACK_SY, 0.36, 0.85);
    effector:SetKey(_TRACK_SX, 1.52, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.52, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0.36, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.52, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0.36, 0);
    effector:SetKey(_TRACK_O, 0.52, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.32, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.52, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_17
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 10);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.28, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.28, 1128.78651428223);
    effector:SetKey(_TRACK_Y, 0.28, 442.069290161133);
    effector:SetKey(_TRACK_X, 1.44, -150.00749206543);
    effector:SetKey(_TRACK_Y, 1.44, 337.428833007813);
    effector:SetKey(_TRACK_SX, 0.28, 0.85);
    effector:SetKey(_TRACK_SY, 0.28, 0.85);
    effector:SetKey(_TRACK_SX, 1.44, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.44, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0.28, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.44, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0.28, 0);
    effector:SetKey(_TRACK_O, 0.44, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.24, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.44, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_18
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 9);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.2, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.2, 1119.19850158691);
    effector:SetKey(_TRACK_Y, 0.2, 623.043075561523);
    effector:SetKey(_TRACK_X, 1.36, -156);
    effector:SetKey(_TRACK_Y, 1.36, 440.5);
    effector:SetKey(_TRACK_SX, 0.2, 0.85);
    effector:SetKey(_TRACK_SY, 0.2, 0.85);
    effector:SetKey(_TRACK_SX, 1.36, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.36, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0.2, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.36, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0.2, 0);
    effector:SetKey(_TRACK_O, 0.36, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.16, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.36, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_19
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 8);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.12, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.12, 1118);
    effector:SetKey(_TRACK_Y, 0.12, 577.5);
    effector:SetKey(_TRACK_X, 1.28, -122.441955566406);
    effector:SetKey(_TRACK_Y, 1.28, 342.222839355469);
    effector:SetKey(_TRACK_SX, 0.12, 0.85);
    effector:SetKey(_TRACK_SY, 0.12, 0.85);
    effector:SetKey(_TRACK_SX, 1.28, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.28, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0.12, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.28, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0.12, 0);
    effector:SetKey(_TRACK_O, 0.28, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.08, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.28, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_20
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 7);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.04, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.04, 1112.00749206543);
    effector:SetKey(_TRACK_Y, 0.04, 382.144195556641);
    effector:SetKey(_TRACK_X, 1.2, -156);
    effector:SetKey(_TRACK_Y, 1.2, 440.5);
    effector:SetKey(_TRACK_SX, 0.04, 0.85);
    effector:SetKey(_TRACK_SY, 0.04, 0.85);
    effector:SetKey(_TRACK_SX, 1.2, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.2, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0.04, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.2, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0.04, 0);
    effector:SetKey(_TRACK_O, 0.2, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.2, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Dust_21
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/dust_1.png");
    anim:SetHotSpot(100, 100);
    anim:SetPosZ(zOffset + 6);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0, 2.48);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0, 1118);
    effector:SetKey(_TRACK_Y, 0, 577.5);
    effector:SetKey(_TRACK_X, 1.16, -156);
    effector:SetKey(_TRACK_Y, 1.16, 440.5);
    effector:SetKey(_TRACK_SX, 0, 0.85);
    effector:SetKey(_TRACK_SY, 0, 0.85);
    effector:SetKey(_TRACK_SX, 1.16, 1.83662874939235);
    effector:SetKey(_TRACK_SY, 1.16, 1.83662874939235);
    effector:SetKey(_TRACK_A, 0, -1.45036287911561);
    effector:SetKey(_TRACK_A, 1.16, 3.69835840838439);
    effector:SetKey(_TRACK_O, 0, 0);
    effector:SetKey(_TRACK_O, 0.16, 0.47445494899524);
    effector:SetKey(_TRACK_O, 0.96, 0.47445494899524);
    effector:SetKey(_TRACK_O, 1.16, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Leave_1
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/maple3.png");
    anim:SetHotSpot(30, 28);
    anim:SetPosZ(zOffset + 5);
    anim:SetOpacity(1);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(1.2, 6.24);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 1.2, 1047.7378692627);
    effector:SetKey(_TRACK_Y, 1.2, 503);
    effector:SetKey(_TRACK_X, 1.4, 916.114873179788);
    effector:SetKey(_TRACK_Y, 1.4, 534.605450493618);
    effector:SetKey(_TRACK_X, 1.6, 781.010417257967);
    effector:SetKey(_TRACK_Y, 1.6, 539.155433718769);
    effector:SetKey(_TRACK_X, 1.68, 750.623131436998);
    effector:SetKey(_TRACK_Y, 1.68, 503.525837212673);
    effector:SetKey(_TRACK_X, 1.8, 767.299332823828);
    effector:SetKey(_TRACK_Y, 1.8, 473.435866316572);
    effector:SetKey(_TRACK_X, 2, 820.434681309123);
    effector:SetKey(_TRACK_Y, 2, 467.69405676815);
    effector:SetKey(_TRACK_X, 2.2, 851.37534646909);
    effector:SetKey(_TRACK_Y, 2.2, 514.230510789677);
    effector:SetKey(_TRACK_X, 2.36, 839.315384536189);
    effector:SetKey(_TRACK_Y, 2.36, 557.801222915971);
    effector:SetKey(_TRACK_X, 2.4, 819.118813471251);
    effector:SetKey(_TRACK_Y, 2.4, 567.699861343178);
    effector:SetKey(_TRACK_X, 2.6, 706.237459702336);
    effector:SetKey(_TRACK_Y, 2.6, 579.570724735871);
    effector:SetKey(_TRACK_X, 2.8, 609.727060426975);
    effector:SetKey(_TRACK_Y, 2.8, 537.473162134889);
    effector:SetKey(_TRACK_X, 2.84, 615.575306530416);
    effector:SetKey(_TRACK_Y, 2.84, 515.721833729389);
    effector:SetKey(_TRACK_X, 3, 650.370576690186);
    effector:SetKey(_TRACK_Y, 3, 488.998120105182);
    effector:SetKey(_TRACK_X, 3.2, 702.575453327653);
    effector:SetKey(_TRACK_Y, 3.2, 506.958966244152);
    effector:SetKey(_TRACK_X, 3.4, 711.1698187551);
    effector:SetKey(_TRACK_Y, 3.4, 556.796010676255);
    effector:SetKey(_TRACK_X, 3.6, 658.324360065826);
    effector:SetKey(_TRACK_Y, 3.6, 575.139880182361);
    effector:SetKey(_TRACK_X, 3.8, 544.348062001582);
    effector:SetKey(_TRACK_Y, 3.8, 562.302754207823);
    effector:SetKey(_TRACK_X, 4, 430.32382875477);
    effector:SetKey(_TRACK_Y, 4, 548.922402554708);
    effector:SetKey(_TRACK_X, 4.08, 384.499744807871);
    effector:SetKey(_TRACK_Y, 4.08, 546.006582814661);
    effector:SetKey(_TRACK_X, 4.2, 312.557856217791);
    effector:SetKey(_TRACK_Y, 4.2, 555.255963376129);
    effector:SetKey(_TRACK_X, 4.4, 192.435308471262);
    effector:SetKey(_TRACK_Y, 4.4, 568.964951876496);
    effector:SetKey(_TRACK_X, 4.56, 147.556939582183);
    effector:SetKey(_TRACK_Y, 4.56, 520.873432527324);
    effector:SetKey(_TRACK_X, 4.6, 155.758923709263);
    effector:SetKey(_TRACK_Y, 4.6, 511.802254886584);
    effector:SetKey(_TRACK_X, 4.8, 208.802767995255);
    effector:SetKey(_TRACK_Y, 4.8, 511.817461521778);
    effector:SetKey(_TRACK_X, 5, 206.229797812886);
    effector:SetKey(_TRACK_Y, 5, 569.298509476892);
    effector:SetKey(_TRACK_X, 5.2, 157.536667404587);
    effector:SetKey(_TRACK_Y, 5.2, 604.828402425863);
    effector:SetKey(_TRACK_X, 5.32, 122.209981584048);
    effector:SetKey(_TRACK_Y, 5.32, 614.6692862505);
    effector:SetKey(_TRACK_X, 5.4, 89.5691467598833);
    effector:SetKey(_TRACK_Y, 5.4, 617.39532133458);
    effector:SetKey(_TRACK_X, 5.6, 9.19784306815934);
    effector:SetKey(_TRACK_Y, 5.6, 602.728940368496);
    effector:SetKey(_TRACK_X, 5.72, -36.2621307373047);
    effector:SetKey(_TRACK_Y, 5.72, 584);
    effector:SetKey(_TRACK_SX, 1.2, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 1.2, 0.42857142857143);
    effector:SetKey(_TRACK_SX, 1.68, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 1.68, -0.5);
    effector:SetKey(_TRACK_SX, 2.36, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 2.36, 0.5);
    effector:SetKey(_TRACK_SX, 2.84, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 2.84, -0.5);
    effector:SetKey(_TRACK_SX, 3.6, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 3.6, 0.5);
    effector:SetKey(_TRACK_SX, 4.08, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 4.08, 0.21428571428571);
    effector:SetKey(_TRACK_SX, 4.56, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 4.56, 0.46428571428571);
    effector:SetKey(_TRACK_SX, 5.32, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 5.32, -0.46428571428572);
    effector:SetKey(_TRACK_A, 1.2, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Leave_2
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/maple3.png");
    anim:SetHotSpot(30, 28);
    anim:SetPosZ(zOffset + 4);
    anim:SetOpacity(1);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(-0.2, 6.24);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, -0.2, 1047.7378692627);
    effector:SetKey(_TRACK_Y, -0.2, 503);
    effector:SetKey(_TRACK_X, 0.28, 750.623130059593);
    effector:SetKey(_TRACK_Y, 0.28, 503.525837265171);
    effector:SetKey(_TRACK_X, 0.48, 787.040570715898);
    effector:SetKey(_TRACK_Y, 0.48, 461.93777975209);
    effector:SetKey(_TRACK_X, 0.68, 837.86957488365);
    effector:SetKey(_TRACK_Y, 0.68, 482.728716000032);
    effector:SetKey(_TRACK_X, 0.88, 849.521217572827);
    effector:SetKey(_TRACK_Y, 0.88, 537.152246774808);
    effector:SetKey(_TRACK_X, 0.96, 839.315384771405);
    effector:SetKey(_TRACK_Y, 0.96, 557.801223641177);
    effector:SetKey(_TRACK_X, 1.08, 774.419790824144);
    effector:SetKey(_TRACK_Y, 1.08, 576.275065308872);
    effector:SetKey(_TRACK_X, 1.28, 660.975309244392);
    effector:SetKey(_TRACK_Y, 1.28, 574.863296631166);
    effector:SetKey(_TRACK_X, 1.44, 615.575308518998);
    effector:SetKey(_TRACK_Y, 1.44, 515.721833421375);
    effector:SetKey(_TRACK_X, 1.48, 621.740019715604);
    effector:SetKey(_TRACK_Y, 1.48, 506.149690800501);
    effector:SetKey(_TRACK_X, 1.68, 672.956750014065);
    effector:SetKey(_TRACK_Y, 1.68, 490.501738404661);
    effector:SetKey(_TRACK_X, 1.88, 716.065962687992);
    effector:SetKey(_TRACK_Y, 1.88, 525.146403204313);
    effector:SetKey(_TRACK_X, 2.08, 691.770640959038);
    effector:SetKey(_TRACK_Y, 2.08, 568.417186575956);
    effector:SetKey(_TRACK_X, 2.2, 658.324358960398);
    effector:SetKey(_TRACK_Y, 2.2, 575.139879818908);
    effector:SetKey(_TRACK_X, 2.28, 612.581778458905);
    effector:SetKey(_TRACK_Y, 2.28, 571.787358763666);
    effector:SetKey(_TRACK_X, 2.48, 498.823521340907);
    effector:SetKey(_TRACK_Y, 2.48, 556.2280807971);
    effector:SetKey(_TRACK_X, 2.68, 384.499743927925);
    effector:SetKey(_TRACK_Y, 2.68, 546.006582934198);
    effector:SetKey(_TRACK_X, 2.88, 264.699787519782);
    effector:SetKey(_TRACK_Y, 2.88, 562.445138002532);
    effector:SetKey(_TRACK_X, 3.08, 144.978791739486);
    effector:SetKey(_TRACK_Y, 3.08, 562.029005362757);
    effector:SetKey(_TRACK_X, 3.16, 147.556940311476);
    effector:SetKey(_TRACK_Y, 3.16, 520.87343128219);
    effector:SetKey(_TRACK_X, 3.28, 176.62907018674);
    effector:SetKey(_TRACK_Y, 3.28, 499.504679733806);
    effector:SetKey(_TRACK_X, 3.48, 216.500932927736);
    effector:SetKey(_TRACK_Y, 3.48, 534.720325417459);
    effector:SetKey(_TRACK_X, 3.68, 189.500908512726);
    effector:SetKey(_TRACK_Y, 3.68, 587.048069946779);
    effector:SetKey(_TRACK_X, 3.88, 134.186791857797);
    effector:SetKey(_TRACK_Y, 3.88, 612.089995027105);
    effector:SetKey(_TRACK_X, 3.92, 122.209983055519);
    effector:SetKey(_TRACK_Y, 3.92, 614.669287913279);
    effector:SetKey(_TRACK_X, 4.08, 56.9162680670568);
    effector:SetKey(_TRACK_Y, 4.08, 614.539971237443);
    effector:SetKey(_TRACK_X, 4.28, -21.426440485823);
    effector:SetKey(_TRACK_Y, 4.28, 590.993696464505);
    effector:SetKey(_TRACK_X, 4.32, -36.2621307373047);
    effector:SetKey(_TRACK_Y, 4.32, 584);
    effector:SetKey(_TRACK_SX, -0.2, 0.42857142857143);
    effector:SetKey(_TRACK_SY, -0.2, 0.42857142857143);
    effector:SetKey(_TRACK_SX, 0.28, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 0.28, -0.5);
    effector:SetKey(_TRACK_SX, 0.96, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 0.96, 0.5);
    effector:SetKey(_TRACK_SX, 1.44, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 1.44, -0.5);
    effector:SetKey(_TRACK_SX, 2.2, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 2.2, 0.5);
    effector:SetKey(_TRACK_SX, 2.68, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 2.68, 0.21428571428571);
    effector:SetKey(_TRACK_SX, 3.16, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 3.16, 0.46428571428571);
    effector:SetKey(_TRACK_SX, 3.92, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 3.92, -0.46428571428572);
    effector:SetKey(_TRACK_A, -0.2, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Leave_3
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/maple3.png");
    anim:SetHotSpot(30, 28);
    anim:SetPosZ(zOffset + 3);
    anim:SetOpacity(1);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.28, 6.24);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.28, 1047.7378692627);
    effector:SetKey(_TRACK_Y, 0.28, 503);
    effector:SetKey(_TRACK_X, 0.48, 916.114871628684);
    effector:SetKey(_TRACK_Y, 0.48, 534.605450418847);
    effector:SetKey(_TRACK_X, 0.68, 781.010415441993);
    effector:SetKey(_TRACK_Y, 0.68, 539.155433101166);
    effector:SetKey(_TRACK_X, 0.76, 750.623129147166);
    effector:SetKey(_TRACK_Y, 0.76, 503.525836765478);
    effector:SetKey(_TRACK_X, 0.88, 767.299331004345);
    effector:SetKey(_TRACK_Y, 0.88, 473.435865430132);
    effector:SetKey(_TRACK_X, 1.08, 820.434681278483);
    effector:SetKey(_TRACK_Y, 1.08, 467.694055999297);
    effector:SetKey(_TRACK_X, 1.28, 851.375346377656);
    effector:SetKey(_TRACK_Y, 1.28, 514.230510718722);
    effector:SetKey(_TRACK_X, 1.44, 839.315384340692);
    effector:SetKey(_TRACK_Y, 1.44, 557.801223195368);
    effector:SetKey(_TRACK_X, 1.48, 819.118813561189);
    effector:SetKey(_TRACK_Y, 1.48, 567.699861524428);
    effector:SetKey(_TRACK_X, 1.68, 706.237458876413);
    effector:SetKey(_TRACK_Y, 1.68, 579.570725310443);
    effector:SetKey(_TRACK_X, 1.88, 609.727062287292);
    effector:SetKey(_TRACK_Y, 1.88, 537.473163871667);
    effector:SetKey(_TRACK_X, 1.92, 615.57530838306);
    effector:SetKey(_TRACK_Y, 1.92, 515.721834875293);
    effector:SetKey(_TRACK_X, 2.08, 650.370575090375);
    effector:SetKey(_TRACK_Y, 2.08, 488.998120330897);
    effector:SetKey(_TRACK_X, 2.28, 702.575452185559);
    effector:SetKey(_TRACK_Y, 2.28, 506.958966101173);
    effector:SetKey(_TRACK_X, 2.48, 711.169818706881);
    effector:SetKey(_TRACK_Y, 2.48, 556.796011295384);
    effector:SetKey(_TRACK_X, 2.68, 658.324358936061);
    effector:SetKey(_TRACK_Y, 2.68, 575.139880542724);
    effector:SetKey(_TRACK_X, 2.88, 544.348061398872);
    effector:SetKey(_TRACK_Y, 2.88, 562.302754041284);
    effector:SetKey(_TRACK_X, 3.08, 430.323828456329);
    effector:SetKey(_TRACK_Y, 3.08, 548.922402562368);
    effector:SetKey(_TRACK_X, 3.16, 384.499744578097);
    effector:SetKey(_TRACK_Y, 3.16, 546.006582770005);
    effector:SetKey(_TRACK_X, 3.28, 312.557856479059);
    effector:SetKey(_TRACK_Y, 3.28, 555.255962808057);
    effector:SetKey(_TRACK_X, 3.48, 192.435308347937);
    effector:SetKey(_TRACK_Y, 3.48, 568.964953361832);
    effector:SetKey(_TRACK_X, 3.64, 147.556939923897);
    effector:SetKey(_TRACK_Y, 3.64, 520.873432377211);
    effector:SetKey(_TRACK_X, 3.68, 155.758923961529);
    effector:SetKey(_TRACK_Y, 3.68, 511.802254519477);
    effector:SetKey(_TRACK_X, 3.88, 208.802768792642);
    effector:SetKey(_TRACK_Y, 3.88, 511.817460814084);
    effector:SetKey(_TRACK_X, 4.08, 206.229797210573);
    effector:SetKey(_TRACK_Y, 4.08, 569.298508177292);
    effector:SetKey(_TRACK_X, 4.28, 157.536667037785);
    effector:SetKey(_TRACK_Y, 4.28, 604.828403429068);
    effector:SetKey(_TRACK_X, 4.4, 122.20998186571);
    effector:SetKey(_TRACK_Y, 4.4, 614.669286825706);
    effector:SetKey(_TRACK_X, 4.48, 89.5691467111758);
    effector:SetKey(_TRACK_Y, 4.48, 617.395320980565);
    effector:SetKey(_TRACK_X, 4.68, 9.19784283423497);
    effector:SetKey(_TRACK_Y, 4.68, 602.728941001602);
    effector:SetKey(_TRACK_X, 4.8, -36.2621307373047);
    effector:SetKey(_TRACK_Y, 4.8, 584);
    effector:SetKey(_TRACK_SX, 0.28, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 0.28, 0.42857142857143);
    effector:SetKey(_TRACK_SX, 0.76, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 0.76, -0.5);
    effector:SetKey(_TRACK_SX, 1.44, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 1.44, 0.5);
    effector:SetKey(_TRACK_SX, 1.92, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 1.92, -0.5);
    effector:SetKey(_TRACK_SX, 2.68, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 2.68, 0.5);
    effector:SetKey(_TRACK_SX, 3.16, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 3.16, 0.21428571428571);
    effector:SetKey(_TRACK_SX, 3.64, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 3.64, 0.46428571428571);
    effector:SetKey(_TRACK_SX, 4.4, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 4.4, -0.46428571428572);
    effector:SetKey(_TRACK_A, 0.28, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Leave_4
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/maple3.png");
    anim:SetHotSpot(30, 28);
    anim:SetPosZ(zOffset + 2);
    anim:SetOpacity(1);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.68, 6.24);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.68, 1047.7378692627);
    effector:SetKey(_TRACK_Y, 0.68, 503);
    effector:SetKey(_TRACK_X, 0.88, 916.114871873565);
    effector:SetKey(_TRACK_Y, 0.88, 534.605450720065);
    effector:SetKey(_TRACK_X, 1.08, 781.010416477456);
    effector:SetKey(_TRACK_Y, 1.08, 539.155433863427);
    effector:SetKey(_TRACK_X, 1.16, 750.623130269518);
    effector:SetKey(_TRACK_Y, 1.16, 503.525836857147);
    effector:SetKey(_TRACK_X, 1.28, 767.299330948649);
    effector:SetKey(_TRACK_Y, 1.28, 473.435865215403);
    effector:SetKey(_TRACK_X, 1.48, 820.434681435989);
    effector:SetKey(_TRACK_Y, 1.48, 467.694056404186);
    effector:SetKey(_TRACK_X, 1.68, 851.375346283934);
    effector:SetKey(_TRACK_Y, 1.68, 514.230510589995);
    effector:SetKey(_TRACK_X, 1.84, 839.315385383395);
    effector:SetKey(_TRACK_Y, 1.84, 557.801223351062);
    effector:SetKey(_TRACK_X, 1.88, 819.118814671391);
    effector:SetKey(_TRACK_Y, 1.88, 567.699861621385);
    effector:SetKey(_TRACK_X, 2.08, 706.237459267325);
    effector:SetKey(_TRACK_Y, 2.08, 579.570724737549);
    effector:SetKey(_TRACK_X, 2.28, 609.727062024741);
    effector:SetKey(_TRACK_Y, 2.28, 537.473162000089);
    effector:SetKey(_TRACK_X, 2.32, 615.575308220678);
    effector:SetKey(_TRACK_Y, 2.32, 515.721833520701);
    effector:SetKey(_TRACK_X, 2.48, 650.370575383871);
    effector:SetKey(_TRACK_Y, 2.48, 488.99812030755);
    effector:SetKey(_TRACK_X, 2.68, 702.575452563531);
    effector:SetKey(_TRACK_Y, 2.68, 506.958965448839);
    effector:SetKey(_TRACK_X, 2.88, 711.169817841926);
    effector:SetKey(_TRACK_Y, 2.88, 556.796011415016);
    effector:SetKey(_TRACK_X, 3.08, 658.324360091736);
    effector:SetKey(_TRACK_Y, 3.08, 575.139880814064);
    effector:SetKey(_TRACK_X, 3.28, 544.348061088621);
    effector:SetKey(_TRACK_Y, 3.28, 562.302754120968);
    effector:SetKey(_TRACK_X, 3.48, 430.323827928756);
    effector:SetKey(_TRACK_Y, 3.48, 548.922401458269);
    effector:SetKey(_TRACK_X, 3.56, 384.499743548822);
    effector:SetKey(_TRACK_Y, 3.56, 546.006582801722);
    effector:SetKey(_TRACK_X, 3.68, 312.55785523836);
    effector:SetKey(_TRACK_Y, 3.68, 555.255964059865);
    effector:SetKey(_TRACK_X, 3.88, 192.435309189637);
    effector:SetKey(_TRACK_Y, 3.88, 568.964952895204);
    effector:SetKey(_TRACK_X, 4.04, 147.556940484889);
    effector:SetKey(_TRACK_Y, 4.04, 520.873432301938);
    effector:SetKey(_TRACK_X, 4.08, 155.758924698001);
    effector:SetKey(_TRACK_Y, 4.08, 511.802254376345);
    effector:SetKey(_TRACK_X, 4.28, 208.802768858837);
    effector:SetKey(_TRACK_Y, 4.28, 511.817461996371);
    effector:SetKey(_TRACK_X, 4.48, 206.229797597822);
    effector:SetKey(_TRACK_Y, 4.48, 569.298509509364);
    effector:SetKey(_TRACK_X, 4.68, 157.536667306012);
    effector:SetKey(_TRACK_Y, 4.68, 604.828402131512);
    effector:SetKey(_TRACK_X, 4.8, 122.209982899568);
    effector:SetKey(_TRACK_Y, 4.8, 614.669287411394);
    effector:SetKey(_TRACK_X, 4.88, 89.5691473312509);
    effector:SetKey(_TRACK_Y, 4.88, 617.395322844087);
    effector:SetKey(_TRACK_X, 5.08, 9.19784316624583);
    effector:SetKey(_TRACK_Y, 5.08, 602.728940243675);
    effector:SetKey(_TRACK_X, 5.2, -36.2621307373047);
    effector:SetKey(_TRACK_Y, 5.2, 584);
    effector:SetKey(_TRACK_SX, 0.68, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 0.68, 0.42857142857143);
    effector:SetKey(_TRACK_SX, 1.16, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 1.16, -0.5);
    effector:SetKey(_TRACK_SX, 1.84, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 1.84, 0.5);
    effector:SetKey(_TRACK_SX, 2.32, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 2.32, -0.5);
    effector:SetKey(_TRACK_SX, 3.08, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 3.08, 0.5);
    effector:SetKey(_TRACK_SX, 3.56, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 3.56, 0.21428571428571);
    effector:SetKey(_TRACK_SX, 4.04, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 4.04, 0.46428571428571);
    effector:SetKey(_TRACK_SX, 4.8, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 4.8, -0.46428571428572);
    effector:SetKey(_TRACK_A, 0.68, 0);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Leave_5
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/maple3.png");
    anim:SetHotSpot(30, 28);
    anim:SetPosZ(zOffset + 1);
    anim:SetOpacity(1);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.16, 6.24);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.16, 1093.7378692627);
    effector:SetKey(_TRACK_Y, 0.16, 523);
    effector:SetKey(_TRACK_X, 0.36, 950.258880956881);
    effector:SetKey(_TRACK_Y, 0.36, 542.421900339845);
    effector:SetKey(_TRACK_X, 0.52, 921.516244435919);
    effector:SetKey(_TRACK_Y, 0.52, 449.979099036683);
    effector:SetKey(_TRACK_X, 0.56, 934.401373862348);
    effector:SetKey(_TRACK_Y, 0.56, 440.028592951842);
    effector:SetKey(_TRACK_X, 0.76, 1001.73617044511);
    effector:SetKey(_TRACK_Y, 0.76, 465.079037754076);
    effector:SetKey(_TRACK_X, 0.84, 999.231192382552);
    effector:SetKey(_TRACK_Y, 0.84, 496.354384853244);
    effector:SetKey(_TRACK_X, 0.96, 932.218029133463);
    effector:SetKey(_TRACK_Y, 0.96, 529.430686204974);
    effector:SetKey(_TRACK_X, 1.16, 808.125537476887);
    effector:SetKey(_TRACK_Y, 1.16, 489.670178916521);
    effector:SetKey(_TRACK_X, 1.36, 686.421395129241);
    effector:SetKey(_TRACK_Y, 1.36, 441.45636806421);
    effector:SetKey(_TRACK_X, 1.48, 609.595084534094);
    effector:SetKey(_TRACK_Y, 1.48, 425.584265237403);
    effector:SetKey(_TRACK_X, 1.56, 557.479881768227);
    effector:SetKey(_TRACK_Y, 1.56, 427.13304483127);
    effector:SetKey(_TRACK_X, 1.76, 488.069306364995);
    effector:SetKey(_TRACK_Y, 1.76, 518.82867991551);
    effector:SetKey(_TRACK_X, 1.96, 589.4866003465);
    effector:SetKey(_TRACK_Y, 1.96, 578.077026209164);
    effector:SetKey(_TRACK_X, 2.08, 657.97693441496);
    effector:SetKey(_TRACK_Y, 2.08, 541.360722376163);
    effector:SetKey(_TRACK_X, 2.16, 670.538626752642);
    effector:SetKey(_TRACK_Y, 2.16, 498.205087007741);
    effector:SetKey(_TRACK_X, 2.36, 584.942122511317);
    effector:SetKey(_TRACK_Y, 2.36, 423.268902158124);
    effector:SetKey(_TRACK_X, 2.56, 467.821312043361);
    effector:SetKey(_TRACK_Y, 2.56, 426.600932390718);
    effector:SetKey(_TRACK_X, 2.76, 362.263175434903);
    effector:SetKey(_TRACK_Y, 2.76, 479.884609017373);
    effector:SetKey(_TRACK_X, 2.96, 273.067455492798);
    effector:SetKey(_TRACK_Y, 2.96, 558.04682636238);
    effector:SetKey(_TRACK_X, 3.16, 150.294532817487);
    effector:SetKey(_TRACK_Y, 3.16, 620.159717963551);
    effector:SetKey(_TRACK_X, 3.36, 31.7026900492621);
    effector:SetKey(_TRACK_Y, 3.36, 549.905274814795);
    effector:SetKey(_TRACK_X, 3.56, -43.4048501716179);
    effector:SetKey(_TRACK_Y, 3.56, 430.009153483462);
    effector:SetKey(_TRACK_X, 3.72, -86.2621307373047);
    effector:SetKey(_TRACK_Y, 3.72, 325);
    effector:SetKey(_TRACK_SX, 0.16, 1);
    effector:SetKey(_TRACK_SY, 0.16, 1);
    effector:SetKey(_TRACK_SX, 0.52, 1);
    effector:SetKey(_TRACK_SY, 0.52, 0.55455687106637);
    effector:SetKey(_TRACK_SX, 0.84, 1);
    effector:SetKey(_TRACK_SY, 0.84, -1.09284211350699);
    effector:SetKey(_TRACK_SX, 1.48, 1);
    effector:SetKey(_TRACK_SY, 1.48, 1.20288076979675);
    effector:SetKey(_TRACK_SX, 1.84, -0.89592314505865);
    effector:SetKey(_TRACK_SY, 1.84, 1.20288076979675);
    effector:SetKey(_TRACK_SX, 2.52, 1.05843130949216);
    effector:SetKey(_TRACK_SY, 2.52, 1.20288076979675);
    effector:SetKey(_TRACK_A, 0.16, 0);
    effector:SetKey(_TRACK_A, 0.52, 2.8705922350966);
    effector:SetKey(_TRACK_A, 0.84, 5.81395708152998);
    effector:SetKey(_TRACK_A, 1.48, 7.76400603922459);
    effector:SetKey(_TRACK_A, 2.08, 2.98625433616759);
    effector:SetKey(_TRACK_A, 2.96, -0.15408940623006);
    effector:SetKey(_TRACK_A, 3.72, 1.44374945940883);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();


    -- Layer Leave_6
    anim = screen:CreateAnimation("data/Texture/Scenes/Common/LeavesAnimated/maple3.png");
    anim:SetHotSpot(30, 28);
    anim:SetPosZ(zOffset + 0);
    anim:SetOpacity(1);

    effector = CreateAnimationEffector();
    effector:SetLifeTime(0.68, 6.24);
    effector:AttachTo(anim);

    effector:SetKey(_TRACK_X, 0.68, 1069.7378692627);
    effector:SetKey(_TRACK_Y, 0.68, 593);
    effector:SetKey(_TRACK_X, 0.88, 926.258881384018);
    effector:SetKey(_TRACK_Y, 0.88, 612.421899186124);
    effector:SetKey(_TRACK_X, 1.04, 897.51624297679);
    effector:SetKey(_TRACK_Y, 1.04, 519.979099303732);
    effector:SetKey(_TRACK_X, 1.08, 910.401372778453);
    effector:SetKey(_TRACK_Y, 1.08, 510.028593176214);
    effector:SetKey(_TRACK_X, 1.28, 977.736170946133);
    effector:SetKey(_TRACK_Y, 1.28, 535.079037503367);
    effector:SetKey(_TRACK_X, 1.36, 975.231191739606);
    effector:SetKey(_TRACK_Y, 1.36, 566.35438439683);
    effector:SetKey(_TRACK_X, 1.48, 908.218027273481);
    effector:SetKey(_TRACK_Y, 1.48, 599.430686650819);
    effector:SetKey(_TRACK_X, 1.68, 784.125537473194);
    effector:SetKey(_TRACK_Y, 1.68, 559.670178988606);
    effector:SetKey(_TRACK_X, 1.88, 662.421395735431);
    effector:SetKey(_TRACK_Y, 1.88, 511.456367945188);
    effector:SetKey(_TRACK_X, 2, 585.59508613072);
    effector:SetKey(_TRACK_Y, 2, 495.584264583552);
    effector:SetKey(_TRACK_X, 2.08, 533.479882432981);
    effector:SetKey(_TRACK_Y, 2.08, 497.133044508964);
    effector:SetKey(_TRACK_X, 2.28, 464.069307417761);
    effector:SetKey(_TRACK_Y, 2.28, 588.828680517823);
    effector:SetKey(_TRACK_X, 2.48, 565.486601007257);
    effector:SetKey(_TRACK_Y, 2.48, 648.077027712323);
    effector:SetKey(_TRACK_X, 2.6, 633.976935676829);
    effector:SetKey(_TRACK_Y, 2.6, 611.360723123313);
    effector:SetKey(_TRACK_X, 2.68, 646.538627542553);
    effector:SetKey(_TRACK_Y, 2.68, 568.205087683055);
    effector:SetKey(_TRACK_X, 2.88, 560.942123493497);
    effector:SetKey(_TRACK_Y, 2.88, 493.268903032541);
    effector:SetKey(_TRACK_X, 3.08, 443.821311620103);
    effector:SetKey(_TRACK_Y, 3.08, 496.60093240677);
    effector:SetKey(_TRACK_X, 3.28, 338.263174034715);
    effector:SetKey(_TRACK_Y, 3.28, 549.884610567255);
    effector:SetKey(_TRACK_X, 3.48, 249.067454582339);
    effector:SetKey(_TRACK_Y, 3.48, 628.046827313947);
    effector:SetKey(_TRACK_X, 3.68, 131.607561794841);
    effector:SetKey(_TRACK_Y, 3.68, 686.840270737964);
    effector:SetKey(_TRACK_X, 3.88, 33.1298792497515);
    effector:SetKey(_TRACK_Y, 3.88, 599.902272868989);
    effector:SetKey(_TRACK_X, 4.08, -16.2374114004836);
    effector:SetKey(_TRACK_Y, 4.08, 473.247508470716);
    effector:SetKey(_TRACK_X, 4.24, -40.2621307373047);
    effector:SetKey(_TRACK_Y, 4.24, 367);
    effector:SetKey(_TRACK_SX, 0.68, 1);
    effector:SetKey(_TRACK_SY, 0.68, 1);
    effector:SetKey(_TRACK_SX, 1.04, 1);
    effector:SetKey(_TRACK_SY, 1.04, 0.55455687106637);
    effector:SetKey(_TRACK_SX, 1.36, 1);
    effector:SetKey(_TRACK_SY, 1.36, -1.09284211350699);
    effector:SetKey(_TRACK_SX, 2, 1);
    effector:SetKey(_TRACK_SY, 2, 1.20288076979675);
    effector:SetKey(_TRACK_SX, 2.36, -0.89592314505865);
    effector:SetKey(_TRACK_SY, 2.36, 1.20288076979675);
    effector:SetKey(_TRACK_SX, 3.04, 1.05843130949216);
    effector:SetKey(_TRACK_SY, 3.04, 1.20288076979675);
    effector:SetKey(_TRACK_A, 0.68, 0);
    effector:SetKey(_TRACK_A, 1.04, 2.8705922350966);
    effector:SetKey(_TRACK_A, 1.36, 5.81395708152998);
    effector:SetKey(_TRACK_A, 2, 7.76400603922459);
    effector:SetKey(_TRACK_A, 2.6, 2.98625433616759);
    effector:SetKey(_TRACK_A, 3.48, -0.15408940623006);
    effector:SetKey(_TRACK_A, 4.24, 1.44374945940883);

    effector:SetMode(_ANIM_LOOP);
    effector:SetAnimationTime(movieDuration);
    effector:Play();

end

--------------------------------------------------------------------------------
function set_random_frame(anim)
    anim:SetFrame(math.random(0, anim:GetFrames() - 1));
end

--------------------------------------------------------------------------------
function TestViolin(speed)

    screen = PopUpScreensMgr:GetTop();
    
    local composition = CreateCompositionSequence();
    local compositionDuration = 10.24;
    composition:SetDuration(compositionDuration);
    composition:AttachTo(screen);
    composition:SetZ(100);
    
    if (speed)
    then
        composition:SetSpeed(speed);
    end
    
    -- Layer Layer_1
    local element = CreateCompositionElement("data/Texture/violin/R_hand.png");
    element:SetName("Layer_1");
    composition:AddElement(element);
    element:SetHotSpot(5.5, 27);
    composition:RegisterParentInfo("Layer_1", "Layer_2");
    element:SetXY(26.5, 2);
    
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_SX, 0, -0.97);
    effector:SetKey(_TRACK_SY, 0, 1);
    effector:SetKey(_TRACK_SX, 0.24, -0.97);
    effector:SetKey(_TRACK_SY, 0.24, 1);
    effector:SetKey(_TRACK_SX, 0.44, 1);
    effector:SetKey(_TRACK_SY, 0.44, 1);
    effector:SetKey(_TRACK_SX, 6.2, 1);
    effector:SetKey(_TRACK_SY, 6.2, 1);
    effector:SetKey(_TRACK_SX, 6.52, -1);
    effector:SetKey(_TRACK_SY, 6.52, 1);
    effector:SetKey(_TRACK_A, 0, 1.13308249807504);
    effector:SetKey(_TRACK_A, 0.44, -0.38817008768713);
    effector:SetKey(_TRACK_A, 0.68, -0.38817008768713);
    effector:SetKey(_TRACK_A, 1.44, -0.77480214115678);
    effector:SetKey(_TRACK_A, 5.68, -0.77480214115678);
    effector:SetKey(_TRACK_A, 6.2, -2.06588611712646);
    effector:SetKey(_TRACK_A, 6.52, 1.66619919370206);
    effector:SetKey(_TRACK_A, 8.72, 0.84864996439182);
    
    effector:Play();
    
    
    -- Layer Layer_2
    local element = CreateCompositionElement("data/Texture/violin/R_forearm.png");
    element:SetName("Layer_2");
    composition:AddElement(element);
    element:SetHotSpot(49.5, 85);
    composition:RegisterParentInfo("Layer_2", "Layer_4");
    element:SetXY(4, 75);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, -2.10715422958111);
    effector:SetKey(_TRACK_A, 0.24, -0.98525780496463);
    effector:SetKey(_TRACK_A, 0.44, 0.04459537175518);
    effector:SetKey(_TRACK_A, 0.68, 1.59097548415369);
    effector:SetKey(_TRACK_A, 0.88, 2.1991879496735);
    effector:SetKey(_TRACK_A, 1.08, 1.81770764837008);
    effector:SetKey(_TRACK_A, 1.28, 2.27320086155428);
    effector:SetKey(_TRACK_A, 1.44, 1.67378809504773);
    effector:SetKey(_TRACK_A, 1.6, 2.18438347805649);
    effector:SetKey(_TRACK_A, 1.68, 1.7765271443125);
    effector:SetKey(_TRACK_A, 1.88, 2.39531576850224);
    effector:SetKey(_TRACK_A, 2.08, 1.82625519737206);
    effector:SetKey(_TRACK_A, 2.28, 1.81770764837008);
    effector:SetKey(_TRACK_A, 2.48, 2.27320086155428);
    effector:SetKey(_TRACK_A, 2.64, 1.67378809504773);
    effector:SetKey(_TRACK_A, 2.8, 2.18438347805649);
    effector:SetKey(_TRACK_A, 2.88, 1.7765271443125);
    effector:SetKey(_TRACK_A, 3.08, 2.39531576850224);
    effector:SetKey(_TRACK_A, 3.28, 1.82625519737206);
    effector:SetKey(_TRACK_A, 3.48, 1.81770764837008);
    effector:SetKey(_TRACK_A, 3.68, 2.27320086155428);
    effector:SetKey(_TRACK_A, 3.84, 1.67378809504773);
    effector:SetKey(_TRACK_A, 4, 2.18438347805649);
    effector:SetKey(_TRACK_A, 4.08, 1.7765271443125);
    effector:SetKey(_TRACK_A, 4.28, 2.39531576850224);
    effector:SetKey(_TRACK_A, 4.48, 1.82625519737206);
    effector:SetKey(_TRACK_A, 4.68, 1.81770764837008);
    effector:SetKey(_TRACK_A, 4.88, 2.27320086155428);
    effector:SetKey(_TRACK_A, 5.04, 1.67378809504773);
    effector:SetKey(_TRACK_A, 5.2, 2.18438347805649);
    effector:SetKey(_TRACK_A, 5.28, 1.7765271443125);
    effector:SetKey(_TRACK_A, 5.48, 2.39531576850224);
    effector:SetKey(_TRACK_A, 5.68, 1.82625519737206);
    effector:SetKey(_TRACK_A, 6.2, 3.59418933310167);
    effector:SetKey(_TRACK_A, 6.52, 4.38506978236838);
    effector:SetKey(_TRACK_A, 6.96, 4.55847097591502);
    effector:SetKey(_TRACK_A, 8.72, 4.32800058543617);
    
    effector:Play();
    
    
    -- Layer Layer_3
    local element = CreateCompositionElement("data/Texture/violin/smychok.png");
    element:SetName("Layer_3");
    composition:AddElement(element);
    element:SetHotSpot(20, 153);
    composition:RegisterParentInfo("Layer_3", "Layer_1");
    element:SetXY(41.5, 23.0000000000001);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.68, -1.41360626703794);
    effector:SetKey(_TRACK_A, 0.88, -1.22163579527257);
    effector:SetKey(_TRACK_A, 1.08, -1.01786614227553);
    effector:SetKey(_TRACK_A, 1.28, -0.81409648927849);
    effector:SetKey(_TRACK_A, 1.44, -1.1322167642987);
    effector:SetKey(_TRACK_A, 1.6, -1.00415271812122);
    effector:SetKey(_TRACK_A, 1.68, -1.11950154097589);
    effector:SetKey(_TRACK_A, 1.88, -0.91824306115282);
    effector:SetKey(_TRACK_A, 2.08, -0.91824306115282);
    effector:SetKey(_TRACK_A, 2.28, -1.01786614227553);
    effector:SetKey(_TRACK_A, 2.48, -0.81409648927849);
    effector:SetKey(_TRACK_A, 2.64, -1.1322167642987);
    effector:SetKey(_TRACK_A, 2.8, -1.00415271812122);
    effector:SetKey(_TRACK_A, 2.88, -1.11950154097589);
    effector:SetKey(_TRACK_A, 3.08, -0.91824306115282);
    effector:SetKey(_TRACK_A, 3.28, -0.91824306115282);
    effector:SetKey(_TRACK_A, 3.48, -1.01786614227553);
    effector:SetKey(_TRACK_A, 3.68, -0.81409648927849);
    effector:SetKey(_TRACK_A, 3.84, -1.1322167642987);
    effector:SetKey(_TRACK_A, 4, -1.00415271812122);
    effector:SetKey(_TRACK_A, 4.08, -1.11950154097589);
    effector:SetKey(_TRACK_A, 4.28, -0.91824306115282);
    effector:SetKey(_TRACK_A, 4.48, -0.91824306115282);
    effector:SetKey(_TRACK_A, 4.68, -1.01786614227553);
    effector:SetKey(_TRACK_A, 4.88, -0.81409648927849);
    effector:SetKey(_TRACK_A, 5.04, -1.1322167642987);
    effector:SetKey(_TRACK_A, 5.2, -1.00415271812122);
    effector:SetKey(_TRACK_A, 5.28, -1.11950154097589);
    effector:SetKey(_TRACK_A, 5.48, -0.91824306115282);
    effector:SetKey(_TRACK_A, 5.68, -0.91824306115282);
    effector:SetKey(_TRACK_A, 6.2, -0.31875425509306);
    
    effector:Play();
    
    
    -- Layer Layer_4
    local element = CreateCompositionElement("data/Texture/violin/R_arm.png");
    element:SetName("Layer_4");
    composition:AddElement(element);
    element:SetHotSpot(40, 13);
    composition:RegisterParentInfo("Layer_4", "Layer_9");
    element:SetXY(6.52900647126, 38.8139130434782);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, -0.23112575711355);
    effector:SetKey(_TRACK_A, 0.24, 0.71821834532494);
    effector:SetKey(_TRACK_A, 0.44, 0.04127900126098);
    effector:SetKey(_TRACK_A, 0.68, 0.04127900126098);
    effector:SetKey(_TRACK_A, 0.88, -1.12982479781992);
    effector:SetKey(_TRACK_A, 1.08, -0.6102903026912);
    effector:SetKey(_TRACK_A, 1.28, -1.15427297597641);
    effector:SetKey(_TRACK_A, 1.44, -0.09993392355861);
    effector:SetKey(_TRACK_A, 1.6, -0.90821542410806);
    effector:SetKey(_TRACK_A, 1.68, -0.16321701400485);
    effector:SetKey(_TRACK_A, 1.88, -1.22761510151214);
    effector:SetKey(_TRACK_A, 2.08, -0.43497990390165);
    effector:SetKey(_TRACK_A, 2.28, -0.6102903026912);
    effector:SetKey(_TRACK_A, 2.48, -1.15427297597641);
    effector:SetKey(_TRACK_A, 2.64, -0.09993392355861);
    effector:SetKey(_TRACK_A, 2.8, -0.90821542410806);
    effector:SetKey(_TRACK_A, 2.88, -0.16321701400485);
    effector:SetKey(_TRACK_A, 3.08, -1.22761510151214);
    effector:SetKey(_TRACK_A, 3.28, -0.43497990390165);
    effector:SetKey(_TRACK_A, 3.48, -0.6102903026912);
    effector:SetKey(_TRACK_A, 3.68, -1.15427297597641);
    effector:SetKey(_TRACK_A, 3.84, -0.09993392355861);
    effector:SetKey(_TRACK_A, 4, -0.90821542410806);
    effector:SetKey(_TRACK_A, 4.08, -0.16321701400485);
    effector:SetKey(_TRACK_A, 4.28, -1.22761510151214);
    effector:SetKey(_TRACK_A, 4.48, -0.43497990390165);
    effector:SetKey(_TRACK_A, 4.68, -0.6102903026912);
    effector:SetKey(_TRACK_A, 4.88, -1.15427297597641);
    effector:SetKey(_TRACK_A, 5.04, -0.09993392355861);
    effector:SetKey(_TRACK_A, 5.2, -0.90821542410806);
    effector:SetKey(_TRACK_A, 5.28, -0.16321701400485);
    effector:SetKey(_TRACK_A, 5.48, -1.22761510151214);
    effector:SetKey(_TRACK_A, 5.68, -0.43497990390165);
    effector:SetKey(_TRACK_A, 6.2, 0.22648907459236);
    effector:SetKey(_TRACK_A, 6.96, 0.47116688569274);
    effector:SetKey(_TRACK_A, 7.68, -0.41452110088153);
    effector:SetKey(_TRACK_A, 8.72, -0.61468730287704);
    
    effector:Play();
    
    
    -- Layer Layer_5
    local element = CreateCompositionElement("data/Texture/violin/head.png");
    element:SetName("Layer_5");
    composition:AddElement(element);
    element:SetHotSpot(44, 129);
    composition:RegisterParentInfo("Layer_5", "Layer_9");
    element:SetXY(46.5, 4);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.24, -0.25000420379493);
    effector:SetKey(_TRACK_A, 0.68, 0.16108460680784);
    effector:SetKey(_TRACK_A, 0.88, 0.08470144447497);
    effector:SetKey(_TRACK_A, 5.68, 0.08470144447497);
    effector:SetKey(_TRACK_A, 6.96, -0.28928000850408);
    effector:SetKey(_TRACK_A, 8.04, 0.46998224466591);
    effector:SetKey(_TRACK_A, 8.72, -0.10013506216705);
    
    effector:Play();
    
    
    -- Layer Layer_6
    local element = CreateCompositionElement("data/Texture/violin/skripka.png");
    element:SetName("Layer_6");
    composition:AddElement(element);
    element:SetHotSpot(197, 20);
    composition:RegisterParentInfo("Layer_6", "Layer_7");
    element:SetXY(52.0101493254665, 16.002551376149);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, -2.24255311525526);
    effector:SetKey(_TRACK_A, 0.24, -0.44486311647367);
    effector:SetKey(_TRACK_A, 0.44, 0.82512772196967);
    effector:SetKey(_TRACK_A, 0.68, 0.82512772196967);
    effector:SetKey(_TRACK_A, 5.68, 0.82512772196967);
    effector:SetKey(_TRACK_A, 6.2, -1.13074481153444);
    effector:SetKey(_TRACK_A, 7.68, -2.00010774216294);
    effector:SetKey(_TRACK_A, 8.72, -2.13896792636667);
    
    effector:Play();
    
    
    -- Layer Layer_7
    local element = CreateCompositionElement("data/Texture/violin/L_hand.png");
    element:SetName("Layer_7");
    composition:AddElement(element);
    element:SetHotSpot(4.78025477707006, 6.5);
    composition:RegisterParentInfo("Layer_7", "Layer_8");
    element:SetXY(110.268218994141, 28.6091918945313);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.68, 0);
    effector:SetKey(_TRACK_A, 5.68, 0);
    effector:SetKey(_TRACK_A, 6.2, 0.48959540720391);
    effector:SetKey(_TRACK_A, 8.72, -0.38561748458908);
    
    effector:Play();
    
    
    -- Layer Layer_8
    local element = CreateCompositionElement("data/Texture/violin/L_forearm.png");
    element:SetName("Layer_8");
    composition:AddElement(element);
    element:SetHotSpot(9.29004329004329, 14);
    composition:RegisterParentInfo("Layer_8", "Layer_10");
    element:SetXY(58.3409729003906, 45.1647491455078);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, 0.16770989139045);
    effector:SetKey(_TRACK_A, 0.24, -1.1012094749813);
    effector:SetKey(_TRACK_A, 0.44, -1.30342691156267);
    effector:SetKey(_TRACK_A, 0.68, -1.30342691156267);
    effector:SetKey(_TRACK_A, 5.68, -1.30342691156267);
    effector:SetKey(_TRACK_A, 6.2, -0.21333960355104);
    effector:SetKey(_TRACK_A, 7.68, 0.1028339262061);
    effector:SetKey(_TRACK_A, 8.72, 0.31694240045472);
    
    effector:Play();
    
    
    -- Layer Layer_9
    local element = CreateCompositionElement("data/Texture/violin/torse.png");
    element:SetName("Layer_9");
    composition:AddElement(element);
    element:SetHotSpot(49.0135135135135, 114);
    composition:RegisterParentInfo("Layer_9", "Layer_11");
    element:SetXY(94, 6.5);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.68, 0);
    effector:SetKey(_TRACK_A, 0.88, 0.19782153414104);
    effector:SetKey(_TRACK_A, 1.48, 0.00785200011003);
    effector:SetKey(_TRACK_A, 2.04, 0.28775413766041);
    effector:SetKey(_TRACK_A, 2.88, 0.00572558934679);
    effector:SetKey(_TRACK_A, 3.6, 0.23580644902584);
    effector:SetKey(_TRACK_A, 4.32, 0.08815133475464);
    effector:SetKey(_TRACK_A, 4.92, 0.19748188577229);
    effector:SetKey(_TRACK_A, 5.64, 0.09269339114873);
    effector:SetKey(_TRACK_A, 5.68, 0.09269339114873);
    effector:SetKey(_TRACK_A, 6.2, -0.10210284759019);
    effector:SetKey(_TRACK_A, 7.68, 1.27742883198113);
    effector:SetKey(_TRACK_A, 8.72, 0.05874610695342);
    
    effector:Play();
    
    
    -- Layer Layer_10
    local element = CreateCompositionElement("data/Texture/violin/L_Arm.png");
    element:SetName("Layer_10");
    composition:AddElement(element);
    element:SetHotSpot(6.30165289256198, 11.3495575221239);
    composition:RegisterParentInfo("Layer_10", "Layer_9");
    element:SetXY(90.2816162109375, 44.8869781494141);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, 0.72857253035471);
    effector:SetKey(_TRACK_A, 0.24, 0.35324285899009);
    effector:SetKey(_TRACK_A, 0.44, 0.69107391497645);
    effector:SetKey(_TRACK_A, 0.68, 0.69107391497645);
    effector:SetKey(_TRACK_A, 5.68, 0.69107391497645);
    effector:SetKey(_TRACK_A, 6.2, 0.23319973177075);
    effector:SetKey(_TRACK_A, 7.68, -0.14999938606245);
    effector:SetKey(_TRACK_A, 8.72, 0.74714980660783);
    
    effector:Play();
    
    
    -- Layer Layer_11
    local element = CreateCompositionElement("data/Texture/violin/Buttom_dress.png");
    element:SetName("Layer_11");
    composition:AddElement(element);
    element:SetHotSpot(94.5154929577465, 36.8139130434783);
    composition:RegisterParentInfo("Layer_11", "Layer_13");
    element:SetXY(27.5, -229.5);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.68, 0);
    effector:SetKey(_TRACK_A, 1.48, -0.03903368201136);
    effector:SetKey(_TRACK_A, 2.4, -0.00423485473641);
    effector:SetKey(_TRACK_A, 2.96, -0.03399118484522);
    effector:SetKey(_TRACK_A, 3.64, 0.00895828767046);
    effector:SetKey(_TRACK_A, 4.44, -0.01629721311439);
    effector:SetKey(_TRACK_A, 5.32, 0.01517865168422);
    effector:SetKey(_TRACK_A, 5.68, 0.01517865168422);
    
    effector:Play();
    
    
    -- Layer Layer_12
    local element = CreateCompositionElement("data/Texture/violin/L_leg.png");
    element:SetName("Layer_12");
    composition:AddElement(element);
    element:SetHotSpot(26, 13.5);
    composition:RegisterParentInfo("Layer_12", "Layer_13");
    element:SetXY(44.0727996826172, 14.4482727050781);
    
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_SX, 6.48, 1);
    effector:SetKey(_TRACK_SY, 6.48, 1);
    effector:SetKey(_TRACK_SX, 7.24, 1);
    effector:SetKey(_TRACK_SY, 7.24, 0.39542443962401);
    effector:SetKey(_TRACK_SX, 7.88, 1);
    effector:SetKey(_TRACK_SY, 7.88, 1);
    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.68, 0);
    effector:SetKey(_TRACK_A, 5.68, 0);
    
    effector:Play();
    
    
    -- Layer Layer_13
    local element = CreateCompositionElement("data/Texture/violin/R_leg.png");
    element:SetName("Layer_13");
    composition:AddElement(element);
    element:SetHotSpot(15.5, 10);
    element:SetXY(506.5, 690.5);
    
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);
    
    
    effector = element:GetEffector();
    effector:SetLifeTime(0, 60);
    
    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.68, 0);
    effector:SetKey(_TRACK_A, 5.68, 0);
    
    effector:Play();
    
    composition:Play();


end

--------------------------------------------------------------------------------
function BuildRatRunningComposition()

    createCompositionrat_run = function()
    
        local compositionrat_run = CreateCompositionSequence();
        local compositionDuration = 0.25;
        compositionrat_run:SetDuration(compositionDuration);
    
    
        -- Layer Head_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_head2.png");
        element:SetName("Head_2");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(33.5, 18.5);
        compositionrat_run:RegisterParentInfo("Head_2", "Torse_top");
        element:SetXY(9.5, 32);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, 0);
        effector:SetKey(_TRACK_A, 0.2129999935627, 0);
    
        effector:Play();
    
    
        -- Layer Root
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/root.png");
        element:SetName("Root");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(19.5, 62.5);
        element:SetParentElement(compositionrat_run);
        element:SetAngle(-0.17766841106966);
        element:SetOpacity(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_X, -0.24849999248981, 295);
        effector:SetKey(_TRACK_Y, -0.24849999248981, 356.841913677377);
        effector:SetKey(_TRACK_X, -0.14199999570847, 295);
        effector:SetKey(_TRACK_Y, -0.14199999570847, 374);
        effector:SetKey(_TRACK_X, -0.03549999892712, 295);
        effector:SetKey(_TRACK_Y, -0.03549999892712, 356.841913677377);
        effector:SetKey(_TRACK_X, 0, 295);
        effector:SetKey(_TRACK_Y, 0, 362.561824161395);
        effector:SetKey(_TRACK_X, 0.07099999785423, 295);
        effector:SetKey(_TRACK_Y, 0.07099999785423, 374);
        effector:SetKey(_TRACK_X, 0.17749999463558, 295);
        effector:SetKey(_TRACK_Y, 0.17749999463558, 356.841913677377);
        effector:SetKey(_TRACK_X, 0.2129999935627, 295);
        effector:SetKey(_TRACK_Y, 0.2129999935627, 356.841913677377);
        effector:SetKey(_TRACK_SX, 0, 1.048464822112);
        effector:SetKey(_TRACK_SY, 0, 0.92);
        effector:SetKey(_TRACK_SX, 0.07099999785423, 1);
        effector:SetKey(_TRACK_SY, 0.07099999785423, 1);
        effector:SetKey(_TRACK_SX, 0.10001709759235, 0.94374437652775);
        effector:SetKey(_TRACK_SY, 0.10001709759235, 0.8296929644224);
        effector:SetKey(_TRACK_SX, 0.15000828802586, 0.94374437652775);
        effector:SetKey(_TRACK_SY, 0.15000828802586, 0.85);
        effector:SetKey(_TRACK_SX, 0.17749999463558, 1);
        effector:SetKey(_TRACK_SY, 0.17749999463558, 1.04);
        effector:SetKey(_TRACK_SX, 0.2129999935627, 1.048464822112);
        effector:SetKey(_TRACK_SY, 0.2129999935627, 0.92);
    
        effector:Play();
    
    
        -- Layer Head
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_head.png");
        element:SetName("Head");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(66, 19);
        compositionrat_run:RegisterParentInfo("Head", "Torse_top");
        element:SetXY(24, 30.5);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, 0.52175325879796);
        effector:SetKey(_TRACK_A, 0.07099999785423, 0.80323739305148);
        effector:SetKey(_TRACK_A, 0.10649999678135, 0.6519529414804);
        effector:SetKey(_TRACK_A, 0.14199999570847, 0.24613411632039);
        effector:SetKey(_TRACK_A, 0.2129999935627, 0.52175325879796);
    
        effector:Play();
    
    
        -- Layer Left_leg
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_leg.png");
        element:SetName("Left_leg");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(23.5, 18.5);
        compositionrat_run:RegisterParentInfo("Left_leg", "Torse_bottom");
        element:SetXY(64, 55);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, -0.48716423495082);
        effector:SetKey(_TRACK_A, 0.07099999785423, 0.77000006241301);
        effector:SetKey(_TRACK_A, 0.17749999463558, -1.11574638363273);
        effector:SetKey(_TRACK_A, 0.2129999935627, -1.11574638363273);
    
        effector:Play();
    
    
        -- Layer Tail_1
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_tail1.png");
        element:SetName("Tail_1");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(33.5, 9.5);
        compositionrat_run:RegisterParentInfo("Tail_1", "Torse_bottom");
        element:SetXY(104, 62.5);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, 0.12933088932352);
        effector:SetKey(_TRACK_A, 0.07099999785423, -0.37652515448918);
        effector:SetKey(_TRACK_A, 0.2129999935627, 0.12933088932352);
        effector:SetKey(_TRACK_O, 0.03549999892712, 1);
        effector:SetKey(_TRACK_O, 0.10649999678135, 0);
        effector:SetKey(_TRACK_O, 0.14199999570847, 0);
        effector:SetKey(_TRACK_O, 0.2129999935627, 1);
    
        effector:Play();
    
    
        -- Layer Tail_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_tail2.png");
        element:SetName("Tail_2");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(29, 11);
        compositionrat_run:RegisterParentInfo("Tail_2", "Torse_bottom");
        element:SetXY(98, 61.5);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, 0.0699405002345);
        effector:SetKey(_TRACK_A, 0.07099999785423, -0.12275397963196);
        effector:SetKey(_TRACK_A, 0.10649999678135, -0.18765856843355);
        effector:SetKey(_TRACK_A, 0.17749999463558, 0.16573238081243);
        effector:SetKey(_TRACK_A, 0.2129999935627, 0);
        effector:SetKey(_TRACK_O, 0.03549999892712, 0);
        effector:SetKey(_TRACK_O, 0.10649999678135, 1);
        effector:SetKey(_TRACK_O, 0.14199999570847, 0);
    
        effector:Play();
    
    
        -- Layer Tail_3
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_torse3.png");
        element:SetName("Tail_3");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(27, 41.5);
        compositionrat_run:RegisterParentInfo("Tail_3", "Torse_bottom");
        element:SetXY(101, 61.5);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, 0);
        effector:SetKey(_TRACK_A, 0.07099999785423, 0.33328815729073);
        effector:SetKey(_TRACK_A, 0.17749999463558, 0.41844025088108);
        effector:SetKey(_TRACK_A, 0.2129999935627, 0);
        effector:SetKey(_TRACK_O, 0.10649999678135, 0);
        effector:SetKey(_TRACK_O, 0.14199999570847, 1);
        effector:SetKey(_TRACK_O, 0.2129999935627, 0);
    
        effector:Play();
    
    
        -- Layer Left_hand
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_hand_front.png");
        element:SetName("Left_hand");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(21.5, 16);
        compositionrat_run:RegisterParentInfo("Left_hand", "Torse_top");
        element:SetXY(31.5, 53.5);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, 0.56105035816694);
        effector:SetKey(_TRACK_A, 0.07099999785423, -0.76720511602636);
        effector:SetKey(_TRACK_A, 0.17749999463558, 1.22517809526359);
        effector:SetKey(_TRACK_A, 0.2129999935627, 0.56105035816694);
    
        effector:Play();
    
    
        -- Layer Torse_top
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_torse1.png");
        element:SetName("Torse_top");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(58, 22);
        compositionrat_run:RegisterParentInfo("Torse_top", "Root");
        element:SetXY(19, 49);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, 0.13195093576682);
        effector:SetKey(_TRACK_A, 0.10649999678135, -0.38374320813929);
        effector:SetKey(_TRACK_A, 0.2129999935627, 0.13195093576682);
    
        effector:Play();
    
    
        -- Layer Right_hand
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_hand_front2.png");
        element:SetName("Right_hand");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(31, 19.5);
        compositionrat_run:RegisterParentInfo("Right_hand", "Torse_top");
        element:SetXY(27.0756777667416, 40.8888774217466);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, 0.69044903403582);
        effector:SetKey(_TRACK_A, 0.10649999678135, -0.86808503615487);
        effector:SetKey(_TRACK_A, 0.2129999935627, 0.69044903403582);
    
        effector:Play();
    
    
        -- Layer Torse_bottom
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_torse2.png");
        element:SetName("Torse_bottom");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(42, 23.5);
        compositionrat_run:RegisterParentInfo("Torse_bottom", "Root");
        element:SetXY(22, 52);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, -0.42715012195418);
        effector:SetKey(_TRACK_A, 0.10649999678135, 0.04606018844663);
        effector:SetKey(_TRACK_A, 0.2129999935627, -0.42715012195418);
    
        effector:Play();
    
    
        -- Layer Right_leg
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_leg.png");
        element:SetName("Right_leg");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(23.5, 18.5);
        compositionrat_run:RegisterParentInfo("Right_leg", "Torse_bottom");
        element:SetXY(60.8190061336803, 51.1423740432182);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.24849999248981);
    
        effector:SetKey(_TRACK_A, 0, -0.94811695692032);
        effector:SetKey(_TRACK_A, 0.10649999678135, -0.03682427711395);
        effector:SetKey(_TRACK_A, 0.2129999935627, -0.94811695692032);
    
        effector:Play();
    
    
        -- Layer Shadow
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/shadow.png");
        element:SetName("Shadow");
        compositionrat_run:AddElement(element);
        element:SetHotSpot(140.5, 50.5);
        element:SetParentElement(compositionrat_run);
        element:SetAngle(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 5);
    
        effector:SetKey(_TRACK_X, 0, 309);
        effector:SetKey(_TRACK_Y, 0, 418);
        effector:SetKey(_TRACK_X, 0.1, 310.5);
        effector:SetKey(_TRACK_Y, 0.1, 411);
        effector:SetKey(_TRACK_X, 0.2, 309);
        effector:SetKey(_TRACK_Y, 0.2, 418);
        effector:SetKey(_TRACK_SX, 0, 0.94661921708185);
        effector:SetKey(_TRACK_SY, 0, 1.03960396039604);
        effector:SetKey(_TRACK_SX, 0.1, 0.91103202846975);
        effector:SetKey(_TRACK_SY, 0.1, 0.7029702970297);
        effector:SetKey(_TRACK_SX, 0.2, 0.94661921708185);
        effector:SetKey(_TRACK_SY, 0.2, 1.03960396039604);
        effector:SetKey(_TRACK_O, 0, 0.4);
        effector:SetKey(_TRACK_O, 0.1, 0.7);
        effector:SetKey(_TRACK_O, 0.2, 0.4);
    
        effector:Play();
    
        compositionrat_run:Play();
    
        return compositionrat_run;
    end
    
    local result = createCompositionrat_run();
    result:SetCyclic(true);
    
    return result;

end

--------------------------------------------------------------------------------
function BuildRatEatingComposition()

    createCompositionrat_eating = function()
    
        local compositionrat_eating = CreateCompositionSequence();
        local compositionDuration = 3.5;
        compositionrat_eating:SetDuration(compositionDuration);
    
    
        -- Layer Root
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/root.png");
        element:SetName("Root");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(19.5, 62.5);
        element:SetParentElement(compositionrat_eating);
        element:SetScaleX(1.048464822112);
        element:SetScaleY(0.92);
        element:SetOpacity(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.69999992549419);
    
        effector:SetKey(_TRACK_X, 0.90001511275768, 295);
        effector:SetKey(_TRACK_Y, 0.90001511275768, 362.561824161395);
        effector:SetKey(_TRACK_X, 1.04998874366283, 307);
        effector:SetKey(_TRACK_Y, 1.04998874366283, 346.561824161395);
        effector:SetKey(_TRACK_X, 1.49997901618481, 307);
        effector:SetKey(_TRACK_Y, 1.49997901618481, 346.561824161395);
        effector:SetKey(_TRACK_X, 1.95000374019146, 307);
        effector:SetKey(_TRACK_Y, 1.95000374019146, 346.561824161395);
        effector:SetKey(_TRACK_X, 2.15000331103802, 295);
        effector:SetKey(_TRACK_Y, 2.15000331103802, 362.561824161395);
        effector:SetKey(_TRACK_X, 2.39999401271343, 295);
        effector:SetKey(_TRACK_Y, 2.39999401271343, 362.561824161395);
        effector:SetKey(_TRACK_X, 3.10000955760479, 295);
        effector:SetKey(_TRACK_Y, 3.10000955760479, 362.561824161395);
        effector:SetKey(_TRACK_X, 3.35000049769878, 295);
        effector:SetKey(_TRACK_Y, 3.35000049769878, 362.561824161395);
        effector:SetKey(_TRACK_A, 0, 0);
        effector:SetKey(_TRACK_A, 0.90001511275768, 0);
        effector:SetKey(_TRACK_A, 1.04998874366283, 0.61794229972796);
        effector:SetKey(_TRACK_A, 1.49997901618481, 0.61794229972796);
        effector:SetKey(_TRACK_A, 1.95000374019146, 0.61794229972796);
        effector:SetKey(_TRACK_A, 2.15000331103802, 0);
        effector:SetKey(_TRACK_A, 2.39999401271343, 0);
        effector:SetKey(_TRACK_A, 3.10000955760479, 0);
        effector:SetKey(_TRACK_A, 3.35000049769878, 0);
    
        effector:Play();
    
    
        -- Layer Left_hand
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_hand_front.png");
        element:SetName("Left_hand");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(21.5, 16);
        compositionrat_eating:RegisterParentInfo("Left_hand", "Torse_1");
        element:SetXY(31.5, 53.5);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.70000004768372);
    
        effector:SetKey(_TRACK_A, 0, 0.5274192237914);
        effector:SetKey(_TRACK_A, 0.3000166028738, 0.74734796742842);
        effector:SetKey(_TRACK_A, 0.90001510679722, 0.74734796742842);
        effector:SetKey(_TRACK_A, 1.09997992813587, -0.07916632584929);
        effector:SetKey(_TRACK_A, 1.4999789506197, -0.07916632584929);
        effector:SetKey(_TRACK_A, 1.95000379383564, -0.07916632584929);
        effector:SetKey(_TRACK_A, 2.15000324547291, 0.5274192237914);
        effector:SetKey(_TRACK_A, 2.3999941855669, 0.5274192237914);
        effector:SetKey(_TRACK_A, 2.59999351799488, 0.61623471569861);
        effector:SetKey(_TRACK_A, 3.10000973045826, 0.61623471569861);
        effector:SetKey(_TRACK_A, 3.35000043213367, 0.5274192237914);
    
        effector:Play();
    
    
        -- Layer Head_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_head2.png");
        element:SetName("Head_2");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(33.5, 18.5);
        compositionrat_eating:RegisterParentInfo("Head_2", "Torse_1");
        element:SetScaleX(1);
        element:SetScaleY(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.7);
    
        effector:SetKey(_TRACK_X, 1.30001413822174, 13.0358689012786);
        effector:SetKey(_TRACK_Y, 1.30001413822174, 25.4349047706639);
        effector:SetKey(_TRACK_X, 1.39999651908875, 13.0358689012786);
        effector:SetKey(_TRACK_Y, 1.39999651908875, 25.4349047706639);
        effector:SetKey(_TRACK_X, 1.44998776912689, 13.2182105261297);
        effector:SetKey(_TRACK_Y, 1.44998776912689, 24.3633516865856);
        effector:SetKey(_TRACK_X, 1.55000483989716, 13.1270397137041);
        effector:SetKey(_TRACK_Y, 1.55000483989716, 24.8991282286248);
        effector:SetKey(_TRACK_X, 1.75000429153442, 12.7480808581803);
        effector:SetKey(_TRACK_Y, 1.75000429153442, 24.2833517231509);
        effector:SetKey(_TRACK_X, 2.39999413490295, 13.0358689012786);
        effector:SetKey(_TRACK_Y, 2.39999413490295, 25.4349047706639);
        effector:SetKey(_TRACK_X, 3.10000967979431, 13.0358689012786);
        effector:SetKey(_TRACK_Y, 3.10000967979431, 25.4349047706639);
        effector:SetKey(_TRACK_X, 3.35000038146973, 13.0358689012786);
        effector:SetKey(_TRACK_Y, 3.35000038146973, 25.4349047706639);
        effector:SetKey(_TRACK_A, 1.09997999668121, -0.03070105792965);
        effector:SetKey(_TRACK_A, 1.15000581741333, 0);
        effector:SetKey(_TRACK_A, 1.29997944831848, 0.05727823750417);
        effector:SetKey(_TRACK_A, 1.39999651908875, 0.01478961383573);
        effector:SetKey(_TRACK_A, 1.49997889995575, 0.0333750152039);
        effector:SetKey(_TRACK_A, 1.95000386238098, 0.0333750152039);
        effector:SetKey(_TRACK_A, 2.39999413490295, 0.0333750152039);
        effector:SetKey(_TRACK_A, 3.10000967979431, 0.0333750152039);
        effector:SetKey(_TRACK_A, 3.35000038146973, 0.0333750152039);
        effector:SetKey(_TRACK_O, 1.30001413822174, 0);
        effector:SetKey(_TRACK_O, 1.39999651908875, 1);
        effector:SetKey(_TRACK_O, 1.74996972084045, 1);
        effector:SetKey(_TRACK_O, 1.84998679161072, 0);
        effector:SetKey(_TRACK_O, 2.39999413490295, 0);
        effector:SetKey(_TRACK_O, 3.10000967979431, 0);
        effector:SetKey(_TRACK_O, 3.35000038146973, 0);
    
        effector:Play();
    
    
        -- Layer Head
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_head.png");
        element:SetName("Head");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(66, 19);
        compositionrat_eating:RegisterParentInfo("Head", "Torse_1");
        element:SetScaleX(1);
        element:SetScaleY(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.7);
    
        effector:SetKey(_TRACK_X, 2.39999413490295, 24);
        effector:SetKey(_TRACK_Y, 2.39999413490295, 30.5);
        effector:SetKey(_TRACK_X, 2.59999346733093, 30.660861539827);
        effector:SetKey(_TRACK_Y, 2.59999346733093, 24.4777609680258);
        effector:SetKey(_TRACK_X, 3.10000967979431, 30.660861539827);
        effector:SetKey(_TRACK_Y, 3.10000967979431, 24.4777609680258);
        effector:SetKey(_TRACK_X, 3.35000038146973, 24);
        effector:SetKey(_TRACK_Y, 3.35000038146973, 30.5);
        effector:SetKey(_TRACK_A, 0, -0.19749915640491);
        effector:SetKey(_TRACK_A, 0.24999071657658, -0.27112593345624);
        effector:SetKey(_TRACK_A, 0.39999902248383, -0.17729945583573);
        effector:SetKey(_TRACK_A, 0.55000728368759, -0.29508934113719);
        effector:SetKey(_TRACK_A, 0.700015604496, -0.19819517968064);
        effector:SetKey(_TRACK_A, 0.84998923540115, -0.30829818254285);
        effector:SetKey(_TRACK_A, 0.99999755620956, 0.79853542478528);
        effector:SetKey(_TRACK_A, 1.04998874664307, 0.76040047438923);
        effector:SetKey(_TRACK_A, 1.15000581741333, 0.83764298426345);
        effector:SetKey(_TRACK_A, 1.19999706745148, 0.76978065765699);
        effector:SetKey(_TRACK_A, 1.49997889995575, 0.83757939908231);
        effector:SetKey(_TRACK_A, 1.75000429153442, 0.37906665782805);
        effector:SetKey(_TRACK_A, 1.84998679161072, 0.37906665782805);
        effector:SetKey(_TRACK_A, 1.99999511241913, -0.24650752485618);
        effector:SetKey(_TRACK_A, 2.15000343322754, 0.4689241869875);
        effector:SetKey(_TRACK_A, 2.39999413490295, -0.19749915640491);
        effector:SetKey(_TRACK_A, 2.59999346733093, -0.44307167052464);
        effector:SetKey(_TRACK_A, 2.70001077651978, -0.36403041552829);
        effector:SetKey(_TRACK_A, 2.79999303817749, -0.42063331880796);
        effector:SetKey(_TRACK_A, 2.90001010894775, -0.33964146649549);
        effector:SetKey(_TRACK_A, 2.99999260902405, -0.37454305722294);
        effector:SetKey(_TRACK_A, 3.10000967979431, -0.35190257110755);
        effector:SetKey(_TRACK_A, 3.35000038146973, -0.19749915640491);
        effector:SetKey(_TRACK_O, 1.30001413822174, 1);
        effector:SetKey(_TRACK_O, 1.39999651908875, 0);
        effector:SetKey(_TRACK_O, 1.74996972084045, 0);
        effector:SetKey(_TRACK_O, 1.84998679161072, 1);
    
        effector:Play();
    
    
        -- Layer Left_leg
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_leg.png");
        element:SetName("Left_leg");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(23.5, 18.5);
        compositionrat_eating:RegisterParentInfo("Left_leg", "Torse_2");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.69999992549419);
    
        effector:SetKey(_TRACK_X, 0.84998917281628, 70.8399386796853);
        effector:SetKey(_TRACK_Y, 0.84998917281628, 57.2746750385211);
        effector:SetKey(_TRACK_X, 0.95000636279583, 66.6977699284047);
        effector:SetKey(_TRACK_Y, 0.95000636279583, 50.6388480598038);
        effector:SetKey(_TRACK_X, 1.50001358687878, 66.6977699284047);
        effector:SetKey(_TRACK_Y, 1.50001358687878, 50.6388480598038);
        effector:SetKey(_TRACK_X, 1.95000374019146, 66.6977699284047);
        effector:SetKey(_TRACK_Y, 1.95000374019146, 50.6388480598038);
        effector:SetKey(_TRACK_X, 2.15000331103802, 70.8399386796853);
        effector:SetKey(_TRACK_Y, 2.15000331103802, 57.2746750385211);
        effector:SetKey(_TRACK_X, 2.39999401271343, 70.8399386796853);
        effector:SetKey(_TRACK_Y, 2.39999401271343, 57.2746750385211);
        effector:SetKey(_TRACK_X, 3.10000955760479, 70.8399386796853);
        effector:SetKey(_TRACK_Y, 3.10000955760479, 57.2746750385211);
        effector:SetKey(_TRACK_X, 3.35000049769878, 70.8399386796853);
        effector:SetKey(_TRACK_Y, 3.35000049769878, 57.2746750385211);
        effector:SetKey(_TRACK_A, 0.84998917281628, 0.50691555644562);
        effector:SetKey(_TRACK_A, 0.95000636279583, -0.03782977769998);
        effector:SetKey(_TRACK_A, 1.04998874366283, -0.52310087661367);
        effector:SetKey(_TRACK_A, 1.49997901618481, -0.52310087661367);
        effector:SetKey(_TRACK_A, 1.95000374019146, -0.52310087661367);
        effector:SetKey(_TRACK_A, 2.15000331103802, 0.50691555644562);
        effector:SetKey(_TRACK_A, 2.39999401271343, 0.50691555644562);
        effector:SetKey(_TRACK_A, 3.10000955760479, 0.50691555644562);
        effector:SetKey(_TRACK_A, 3.35000049769878, 0.50691555644562);
    
        effector:Play();
    
    
        -- Layer Tail_1
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_tail1.png");
        element:SetName("Tail_1");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(33.5, 9.5);
        compositionrat_eating:RegisterParentInfo("Tail_1", "Torse_2");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.7);
    
        effector:SetKey(_TRACK_X, 0.90001511573792, 104);
        effector:SetKey(_TRACK_Y, 0.90001511573792, 62.5);
        effector:SetKey(_TRACK_X, 1.04998874664307, 94.0459785424536);
        effector:SetKey(_TRACK_Y, 1.04998874664307, 59.7081262227914);
        effector:SetKey(_TRACK_X, 1.95000386238098, 94.0459785424536);
        effector:SetKey(_TRACK_Y, 1.95000386238098, 59.7081262227914);
        effector:SetKey(_TRACK_X, 2.15000343322754, 104);
        effector:SetKey(_TRACK_Y, 2.15000343322754, 62.5);
        effector:SetKey(_TRACK_A, 0, -0.16145987091717);
        effector:SetKey(_TRACK_A, 0.39999902248383, -0.25495297656573);
        effector:SetKey(_TRACK_A, 0.90001511573792, -0.16145987091717);
        effector:SetKey(_TRACK_A, 1.04998874664307, -0.95375935445655);
        effector:SetKey(_TRACK_A, 1.49997889995575, -0.95375935445655);
        effector:SetKey(_TRACK_A, 1.95000386238098, -0.95375935445655);
        effector:SetKey(_TRACK_A, 2.15000343322754, -0.16145987091717);
        effector:SetKey(_TRACK_A, 2.39999413490295, -0.16145987091717);
        effector:SetKey(_TRACK_A, 3.10000967979431, -0.16145987091717);
        effector:SetKey(_TRACK_A, 3.35000038146973, -0.16145987091717);
    
        effector:Play();
    
    
        -- Layer Tail_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_tail2.png");
        element:SetName("Tail_2");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(29, 11);
        compositionrat_eating:RegisterParentInfo("Tail_2", "Torse_2");
        element:SetXY(98, 61.5);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.7);
    
        effector:SetKey(_TRACK_A, 0, 0.0699405002345);
        effector:SetKey(_TRACK_A, 0.90001511573792, 0.0699405002345);
        effector:SetKey(_TRACK_A, 1.49997889995575, 0.0699405002345);
        effector:SetKey(_TRACK_A, 1.95000386238098, 0.0699405002345);
        effector:SetKey(_TRACK_A, 2.15000343322754, 0.0699405002345);
        effector:SetKey(_TRACK_A, 2.39999413490295, 0.0699405002345);
        effector:SetKey(_TRACK_A, 3.10000967979431, 0.0699405002345);
        effector:SetKey(_TRACK_A, 3.35000038146973, 0.0699405002345);
    
        effector:Play();
    
    
        -- Layer Tail_3
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_torse3.png");
        element:SetName("Tail_3");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(27, 41.5);
        compositionrat_eating:RegisterParentInfo("Tail_3", "Torse_2");
        element:SetXY(101, 61.5);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.7);
    
        effector:SetKey(_TRACK_A, 0, 0);
        effector:SetKey(_TRACK_A, 0.90001511573792, 0);
        effector:SetKey(_TRACK_A, 1.49997889995575, 0);
        effector:SetKey(_TRACK_A, 1.95000386238098, 0);
        effector:SetKey(_TRACK_A, 2.15000343322754, 0);
        effector:SetKey(_TRACK_A, 2.39999413490295, 0);
        effector:SetKey(_TRACK_A, 3.10000967979431, 0);
        effector:SetKey(_TRACK_A, 3.35000038146973, 0);
    
        effector:Play();
    
    
        -- Layer Torse_1
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_torse1.png");
        element:SetName("Torse_1");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(58, 22);
        compositionrat_eating:RegisterParentInfo("Torse_1", "Root");
        element:SetXY(19, 49);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.7);
    
        effector:SetKey(_TRACK_A, 0, -0.16855123842002);
        effector:SetKey(_TRACK_A, 0.30001658201218, -0.26449223265113);
        effector:SetKey(_TRACK_A, 0.90001511573792, -0.26449223265113);
        effector:SetKey(_TRACK_A, 1.09997999668121, -0.67424730884089);
        effector:SetKey(_TRACK_A, 1.30001413822174, -0.78676546056601);
        effector:SetKey(_TRACK_A, 1.49997889995575, -0.67422780491443);
        effector:SetKey(_TRACK_A, 1.95000386238098, -0.67422780491443);
        effector:SetKey(_TRACK_A, 2.15000343322754, -0.16855123842002);
        effector:SetKey(_TRACK_A, 2.39999413490295, -0.16855123842002);
        effector:SetKey(_TRACK_A, 2.59999346733093, -0.27583915623324);
        effector:SetKey(_TRACK_A, 3.10000967979431, -0.27583915623324);
        effector:SetKey(_TRACK_A, 3.35000038146973, -0.16855123842002);
    
        effector:Play();
    
    
        -- Layer Left_hand_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_hand_front2.png");
        element:SetName("Left_hand_2");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(31, 19.5);
        compositionrat_eating:RegisterParentInfo("Left_hand_2", "Torse_1");
        element:SetXY(27.0756777667416, 40.8888774217466);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.7);
    
        effector:SetKey(_TRACK_A, 0, 0.69044903403582);
        effector:SetKey(_TRACK_A, 0.90001511573792, 0.69044903403582);
        effector:SetKey(_TRACK_A, 1.09997999668121, 0.10197854357096);
        effector:SetKey(_TRACK_A, 1.49997889995575, 0.10197854357096);
        effector:SetKey(_TRACK_A, 1.95000386238098, 0.10197854357096);
        effector:SetKey(_TRACK_A, 2.15000343322754, 0.69044903403582);
        effector:SetKey(_TRACK_A, 2.39999413490295, 0.69044903403582);
        effector:SetKey(_TRACK_A, 2.59999346733093, 0.51854752016827);
        effector:SetKey(_TRACK_A, 3.10000967979431, 0.51854752016827);
        effector:SetKey(_TRACK_A, 3.35000038146973, 0.69044903403582);
    
        effector:Play();
    
    
        -- Layer Torse_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_torse2.png");
        element:SetName("Torse_2");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(42, 23.5);
        compositionrat_eating:RegisterParentInfo("Torse_2", "Root");
        element:SetXY(22, 52);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.7);
    
        effector:SetKey(_TRACK_A, 0, 0.0654847644442);
        effector:SetKey(_TRACK_A, 0.90001511573792, 0.0654847644442);
        effector:SetKey(_TRACK_A, 1.49997889995575, 0.0654847644442);
        effector:SetKey(_TRACK_A, 1.95000386238098, 0.0654847644442);
        effector:SetKey(_TRACK_A, 2.15000343322754, 0.0654847644442);
        effector:SetKey(_TRACK_A, 2.39999413490295, 0.0654847644442);
        effector:SetKey(_TRACK_A, 3.10000967979431, 0.0654847644442);
        effector:SetKey(_TRACK_A, 3.35000038146973, 0.0654847644442);
    
        effector:Play();
    
    
        -- Layer Left_leg_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_leg.png");
        element:SetName("Left_leg_2");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(23.5, 18.5);
        compositionrat_eating:RegisterParentInfo("Left_leg_2", "Torse_2");
        element:SetXY(57.7148638541922, 47.5334197003879);
    
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.7);
    
        effector:SetKey(_TRACK_A, 0, -0.40462471707711);
        effector:SetKey(_TRACK_A, 0.90001511573792, -0.40462471707711);
        effector:SetKey(_TRACK_A, 1.09997999668121, -1.14279473508226);
        effector:SetKey(_TRACK_A, 1.49997889995575, -1.14279473508226);
        effector:SetKey(_TRACK_A, 1.95000386238098, -1.14279473508226);
        effector:SetKey(_TRACK_A, 2.15000343322754, -0.40462471707711);
        effector:SetKey(_TRACK_A, 2.39999413490295, -0.40462471707711);
        effector:SetKey(_TRACK_A, 3.10000967979431, -0.40462471707711);
        effector:SetKey(_TRACK_A, 3.35000038146973, -0.40462471707711);
    
        effector:Play();
    
    
        -- Layer Shadow
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/shadow.png");
        element:SetName("Shadow");
        compositionrat_eating:AddElement(element);
        element:SetHotSpot(140.5, 50.5);
        element:SetParentElement(compositionrat_eating);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 3.7);
    
        effector:SetKey(_TRACK_X, 0.9, 312);
        effector:SetKey(_TRACK_Y, 0.9, 403);
        effector:SetKey(_TRACK_X, 1.05, 312);
        effector:SetKey(_TRACK_Y, 1.05, 403);
        effector:SetKey(_TRACK_X, 1.95, 312);
        effector:SetKey(_TRACK_Y, 1.95, 403);
        effector:SetKey(_TRACK_X, 2.15, 312);
        effector:SetKey(_TRACK_Y, 2.15, 403);
        effector:SetKey(_TRACK_SX, 0.9, 0.94661921708185);
        effector:SetKey(_TRACK_SY, 0.9, 1.03960396039604);
        effector:SetKey(_TRACK_SX, 1.05, 0.62633451957296);
        effector:SetKey(_TRACK_SY, 1.05, 1.03960396039604);
        effector:SetKey(_TRACK_SX, 1.95, 0.62633451957296);
        effector:SetKey(_TRACK_SY, 1.95, 1.03960396039604);
        effector:SetKey(_TRACK_SX, 2.15, 0.94661921708185);
        effector:SetKey(_TRACK_SY, 2.15, 1.03960396039604);
        effector:SetKey(_TRACK_A, 0, 0);
        effector:SetKey(_TRACK_A, 0.9, 0);
        effector:SetKey(_TRACK_A, 1.05, -0.25701474371506);
        effector:SetKey(_TRACK_A, 1.95, -0.25701474371506);
        effector:SetKey(_TRACK_A, 2.15, 0);
        effector:SetKey(_TRACK_O, 0.9, 0.65);
        effector:SetKey(_TRACK_O, 1.05, 0.57);
        effector:SetKey(_TRACK_O, 1.95, 0.57);
        effector:SetKey(_TRACK_O, 2.15, 0.65);
    
        effector:Play();
    
        compositionrat_eating:Play();
    
        return compositionrat_eating;
    end
    
    local result = createCompositionrat_eating();
    result:SetCyclic(true);
    
    return result;

end

--------------------------------------------------------------------------------
function BuildRatDruggingComposition()

    createCompositionrat_drugging_comp = function()
    
        local compositionrat_drugging_comp = CreateCompositionSequence();
        local compositionDuration = 0.8;
        compositionrat_drugging_comp:SetDuration(compositionDuration);
    
    
        -- Layer Root
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/root.png");
        element:SetName("Root");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(19.5, 62.5);
        element:SetParentElement(compositionrat_drugging_comp);
        element:SetScaleX(1.048464822112);
        element:SetScaleY(0.92);
        element:SetOpacity(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 280);
        effector:SetKey(_TRACK_Y, 0, 361.061824161395);
        effector:SetKey(_TRACK_X, 0.15, 283);
        effector:SetKey(_TRACK_Y, 0.15, 368.561824161395);
        effector:SetKey(_TRACK_X, 0.6, 283);
        effector:SetKey(_TRACK_Y, 0.6, 357.061824161395);
        effector:SetKey(_TRACK_X, 0.75, 280);
        effector:SetKey(_TRACK_Y, 0.75, 361.061824161395);
        effector:SetKey(_TRACK_A, 0, 0.30652560201806);
        effector:SetKey(_TRACK_A, 0.15, 0.48343924934989);
        effector:SetKey(_TRACK_A, 0.6, 1.2825835061142);
        effector:SetKey(_TRACK_A, 0.75, 0.30652560201806);
    
        effector:Play();
    
    
        -- Layer Left_hand_1
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_hand_front.png");
        element:SetName("Left_hand_1");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(21.5, 16);
        compositionrat_drugging_comp:RegisterParentInfo("Left_hand_1", "Torse");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 31.5);
        effector:SetKey(_TRACK_Y, 0, 53.5);
        effector:SetKey(_TRACK_X, 0.15, 31.5);
        effector:SetKey(_TRACK_Y, 0.15, 53.5);
        effector:SetKey(_TRACK_X, 0.3, 33.5607030964761);
        effector:SetKey(_TRACK_Y, 0.3, 46.5262236543859);
        effector:SetKey(_TRACK_X, 0.6, 33.5607030964761);
        effector:SetKey(_TRACK_Y, 0.6, 46.5262236543859);
        effector:SetKey(_TRACK_X, 0.75, 31.5);
        effector:SetKey(_TRACK_Y, 0.75, 53.5);
        effector:SetKey(_TRACK_A, 0, 0.5274192237914);
        effector:SetKey(_TRACK_A, 0.15, 0.5274192237914);
        effector:SetKey(_TRACK_A, 0.3, -0.38034344300775);
        effector:SetKey(_TRACK_A, 0.6, 0.53701061873448);
        effector:SetKey(_TRACK_A, 0.75, 0.5274192237914);
    
        effector:Play();
    
    
        -- Layer Head_1
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_head2.png");
        element:SetName("Head_1");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(33.5, 18.5);
        compositionrat_drugging_comp:RegisterParentInfo("Head_1", "Torse");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 13.0358689012786);
        effector:SetKey(_TRACK_Y, 0, 25.4349047706639);
        effector:SetKey(_TRACK_X, 0.15, 13.0358689012786);
        effector:SetKey(_TRACK_Y, 0.15, 25.4349047706639);
        effector:SetKey(_TRACK_X, 0.6, 13.0358689012786);
        effector:SetKey(_TRACK_Y, 0.6, 25.4349047706639);
        effector:SetKey(_TRACK_X, 0.75, 13.0358689012786);
        effector:SetKey(_TRACK_Y, 0.75, 25.4349047706639);
        effector:SetKey(_TRACK_A, 0, -0.03072234853848);
        effector:SetKey(_TRACK_A, 0.15, -0.03072234853848);
        effector:SetKey(_TRACK_A, 0.6, -0.03072234853848);
        effector:SetKey(_TRACK_A, 0.75, -0.03072234853848);
    
        effector:Play();
    
    
        -- Layer Head_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_head.png");
        element:SetName("Head_2");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(66, 19);
        compositionrat_drugging_comp:RegisterParentInfo("Head_2", "Torse");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 24);
        effector:SetKey(_TRACK_Y, 0, 30.5);
        effector:SetKey(_TRACK_X, 0.15, 24);
        effector:SetKey(_TRACK_Y, 0.15, 30.5);
        effector:SetKey(_TRACK_X, 0.6, 24);
        effector:SetKey(_TRACK_Y, 0.6, 30.5);
        effector:SetKey(_TRACK_X, 0.75, 24);
        effector:SetKey(_TRACK_Y, 0.75, 30.5);
        effector:SetKey(_TRACK_A, 0, 0.04162768167506);
        effector:SetKey(_TRACK_A, 0.15, -0.06703243749686);
        effector:SetKey(_TRACK_A, 0.6, 0.19909933017573);
        effector:SetKey(_TRACK_A, 0.75, 0.04162768167506);
    
        effector:Play();
    
    
        -- Layer Left_leg
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_leg.png");
        element:SetName("Left_leg");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(23.5, 18.5);
        compositionrat_drugging_comp:RegisterParentInfo("Left_leg", "Torse_2");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 70.8399386796853);
        effector:SetKey(_TRACK_Y, 0, 57.2746750385211);
        effector:SetKey(_TRACK_X, 0.15, 70.8399386796853);
        effector:SetKey(_TRACK_Y, 0.15, 57.2746750385211);
        effector:SetKey(_TRACK_X, 0.6, 74.6199633748032);
        effector:SetKey(_TRACK_Y, 0.6, 50.0023632555879);
        effector:SetKey(_TRACK_X, 0.75, 70.8399386796853);
        effector:SetKey(_TRACK_Y, 0.75, 57.2746750385211);
        effector:SetKey(_TRACK_A, 0, 0.50691555644562);
        effector:SetKey(_TRACK_A, 0.15, -0.32603070157103);
        effector:SetKey(_TRACK_A, 0.6, 0.67544451175881);
        effector:SetKey(_TRACK_A, 0.75, 0.50691555644562);
    
        effector:Play();
    
    
        -- Layer Tail_1
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_tail1.png");
        element:SetName("Tail_1");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(33.5, 9.5);
        compositionrat_drugging_comp:RegisterParentInfo("Tail_1", "Torse_2");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 104);
        effector:SetKey(_TRACK_Y, 0, 62.5);
        effector:SetKey(_TRACK_X, 0.15, 104);
        effector:SetKey(_TRACK_Y, 0.15, 62.5);
        effector:SetKey(_TRACK_X, 0.6, 104);
        effector:SetKey(_TRACK_Y, 0.6, 62.5);
        effector:SetKey(_TRACK_X, 0.75, 104);
        effector:SetKey(_TRACK_Y, 0.75, 62.5);
        effector:SetKey(_TRACK_A, 0, -0.68554676471419);
        effector:SetKey(_TRACK_A, 0.15, 0.57894038816637);
        effector:SetKey(_TRACK_A, 0.6, -0.53400378727352);
        effector:SetKey(_TRACK_A, 0.75, -0.68554676471419);
    
        effector:Play();
    
    
        -- Layer Tail_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_tail2.png");
        element:SetName("Tail_2");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(29, 11);
        compositionrat_drugging_comp:RegisterParentInfo("Tail_2", "Torse_2");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 98);
        effector:SetKey(_TRACK_Y, 0, 61.5);
        effector:SetKey(_TRACK_X, 0.15, 98);
        effector:SetKey(_TRACK_Y, 0.15, 61.5);
        effector:SetKey(_TRACK_X, 0.6, 98);
        effector:SetKey(_TRACK_Y, 0.6, 61.5);
        effector:SetKey(_TRACK_X, 0.75, 98);
        effector:SetKey(_TRACK_Y, 0.75, 61.5);
        effector:SetKey(_TRACK_A, 0, 0.0699405002345);
        effector:SetKey(_TRACK_A, 0.15, 0.0699405002345);
        effector:SetKey(_TRACK_A, 0.6, 0.0699405002345);
        effector:SetKey(_TRACK_A, 0.75, 0.0699405002345);
    
        effector:Play();
    
    
        -- Layer Tail_3
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_torse3.png");
        element:SetName("Tail_3");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(27, 41.5);
        compositionrat_drugging_comp:RegisterParentInfo("Tail_3", "Torse_2");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(0);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 101);
        effector:SetKey(_TRACK_Y, 0, 61.5);
        effector:SetKey(_TRACK_X, 0.15, 101);
        effector:SetKey(_TRACK_Y, 0.15, 61.5);
        effector:SetKey(_TRACK_X, 0.6, 101);
        effector:SetKey(_TRACK_Y, 0.6, 61.5);
        effector:SetKey(_TRACK_X, 0.75, 101);
        effector:SetKey(_TRACK_Y, 0.75, 61.5);
        effector:SetKey(_TRACK_A, 0, 0);
        effector:SetKey(_TRACK_A, 0.15, 0);
        effector:SetKey(_TRACK_A, 0.6, 0);
        effector:SetKey(_TRACK_A, 0.75, 0);
    
        effector:Play();
    
    
        -- Layer Torse
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_torse1.png");
        element:SetName("Torse");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(58, 22);
        compositionrat_drugging_comp:RegisterParentInfo("Torse", "Root");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 19);
        effector:SetKey(_TRACK_Y, 0, 49);
        effector:SetKey(_TRACK_X, 0.15, 19);
        effector:SetKey(_TRACK_Y, 0.15, 49);
        effector:SetKey(_TRACK_X, 0.6, 21.5227730914665);
        effector:SetKey(_TRACK_Y, 0.6, 52.6866529708438);
        effector:SetKey(_TRACK_X, 0.75, 19);
        effector:SetKey(_TRACK_Y, 0.75, 49);
        effector:SetKey(_TRACK_A, 0, -0.52476514049778);
        effector:SetKey(_TRACK_A, 0.15, -0.52476514049778);
        effector:SetKey(_TRACK_A, 0.6, -1.40301187767507);
        effector:SetKey(_TRACK_A, 0.75, -0.52476514049778);
    
        effector:Play();
    
    
        -- Layer Left_hand_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_hand_front2.png");
        element:SetName("Left_hand_2");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(31, 19.5);
        compositionrat_drugging_comp:RegisterParentInfo("Left_hand_2", "Torse");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 27.0756777667416);
        effector:SetKey(_TRACK_Y, 0, 40.8888774217466);
        effector:SetKey(_TRACK_X, 0.15, 27.0756777667416);
        effector:SetKey(_TRACK_Y, 0.15, 40.8888774217466);
        effector:SetKey(_TRACK_X, 0.6, 27.0756777667416);
        effector:SetKey(_TRACK_Y, 0.6, 40.8888774217466);
        effector:SetKey(_TRACK_X, 0.75, 27.0756777667416);
        effector:SetKey(_TRACK_Y, 0.75, 40.8888774217466);
        effector:SetKey(_TRACK_A, 0, -0.16191958561903);
        effector:SetKey(_TRACK_A, 0.15, -0.02810877104761);
        effector:SetKey(_TRACK_A, 0.3, -0.5120143835864);
        effector:SetKey(_TRACK_A, 0.4, -0.41713209953235);
        effector:SetKey(_TRACK_A, 0.6, 0.11166889117682);
        effector:SetKey(_TRACK_A, 0.75, -0.16191958561903);
    
        effector:Play();
    
    
        -- Layer Torse_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_torse2.png");
        element:SetName("Torse_2");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(42, 23.5);
        compositionrat_drugging_comp:RegisterParentInfo("Torse_2", "Root");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 22);
        effector:SetKey(_TRACK_Y, 0, 52);
        effector:SetKey(_TRACK_X, 0.15, 22);
        effector:SetKey(_TRACK_Y, 0.15, 52);
        effector:SetKey(_TRACK_X, 0.6, 22);
        effector:SetKey(_TRACK_Y, 0.6, 52);
        effector:SetKey(_TRACK_X, 0.75, 22);
        effector:SetKey(_TRACK_Y, 0.75, 52);
        effector:SetKey(_TRACK_A, 0, 0.0654847644442);
        effector:SetKey(_TRACK_A, 0.15, -1.09361710820394);
        effector:SetKey(_TRACK_A, 0.6, -1.09361710820394);
        effector:SetKey(_TRACK_A, 0.75, 0.0654847644442);
    
        effector:Play();
    
    
        -- Layer Left_leg_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/r_leg.png");
        element:SetName("Left_leg_2");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(23.5, 18.5);
        compositionrat_drugging_comp:RegisterParentInfo("Left_leg_2", "Torse_2");
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 57.7148638541922);
        effector:SetKey(_TRACK_Y, 0, 47.5334197003879);
        effector:SetKey(_TRACK_X, 0.15, 57.7148638541922);
        effector:SetKey(_TRACK_Y, 0.15, 47.5334197003879);
        effector:SetKey(_TRACK_X, 0.6, 57.7148638541922);
        effector:SetKey(_TRACK_Y, 0.6, 47.5334197003879);
        effector:SetKey(_TRACK_X, 0.75, 57.7148638541922);
        effector:SetKey(_TRACK_Y, 0.75, 47.5334197003879);
        effector:SetKey(_TRACK_A, 0, -0.40462471707711);
        effector:SetKey(_TRACK_A, 0.15, 0.11635145005501);
        effector:SetKey(_TRACK_A, 0.6, 0.59473491270075);
        effector:SetKey(_TRACK_A, 0.75, -0.40462471707711);
    
        effector:Play();
    
    
        -- Layer Shadow_1
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/shadow.png");
        element:SetName("Shadow_1");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(140.5, 50.5);
        element:SetParentElement(compositionrat_drugging_comp);
        element:SetScaleX(0.94661921708185);
        element:SetScaleY(1.03960396039604);
        element:SetOpacity(0.65);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 312);
        effector:SetKey(_TRACK_Y, 0, 403);
        effector:SetKey(_TRACK_X, 0.15, 312);
        effector:SetKey(_TRACK_Y, 0.15, 403);
        effector:SetKey(_TRACK_X, 0.6, 312);
        effector:SetKey(_TRACK_Y, 0.6, 403);
        effector:SetKey(_TRACK_X, 0.75, 312);
        effector:SetKey(_TRACK_Y, 0.75, 403);
        effector:SetKey(_TRACK_A, 0, 0);
        effector:SetKey(_TRACK_A, 0.15, 0);
        effector:SetKey(_TRACK_A, 0.6, 0);
        effector:SetKey(_TRACK_A, 0.75, 0);
    
        effector:Play();
    
    
        -- Layer Doll_head
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/doll_head.png");
        element:SetName("Doll_head");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(27, 69.5);
        element:SetParentElement(compositionrat_drugging_comp);
        element:SetScaleX(-1);
        element:SetScaleY(1);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
        effector:SetKey(_TRACK_X, 0, 220);
        effector:SetKey(_TRACK_Y, 0, 402);
        effector:SetKey(_TRACK_X, 0.15, 220);
        effector:SetKey(_TRACK_Y, 0.15, 402);
        effector:SetKey(_TRACK_X, 0.6, 220);
        effector:SetKey(_TRACK_Y, 0.6, 402);
        effector:SetKey(_TRACK_X, 0.75, 220);
        effector:SetKey(_TRACK_Y, 0.75, 402);
        effector:SetKey(_TRACK_A, 0, 0.1424689549954);
        effector:SetKey(_TRACK_A, 0.15, 0.1424689549954);
        effector:SetKey(_TRACK_A, 0.6, 0.20760442496075);
        effector:SetKey(_TRACK_A, 0.75, 0.1424689549954);
    
        effector:Play();
    
    
        -- Layer Shadow_2
        local element = CreateCompositionElement("data/Texture/Scenes/Common/Pacuki/shadow.png");
        element:SetName("Shadow_2");
        compositionrat_drugging_comp:AddElement(element);
        element:SetHotSpot(140.5, 50.5);
        element:SetParentElement(compositionrat_drugging_comp);
        element:SetXY(156, 407.5);
    
        element:SetScaleX(0.64768683274022);
        element:SetScaleY(1.03960396039604);
        element:SetAngle(-3.23810500383082);
        element:SetOpacity(0.65);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 0.8);
    
    
        effector:Play();
    
        compositionrat_drugging_comp:Play();
    
        return compositionrat_drugging_comp;
    end
    
    createCompositionrat_drugging = function()
    
        local compositionrat_drugigng = CreateCompositionSequence();
        local compositionDuration = 50;
        compositionrat_drugigng:SetDuration(compositionDuration);
    
    
        -- Layer Layer_1
        local element = createCompositionrat_drugging_comp();
        element:SetName("Layer_1");
        element:SetCyclic(true);
        compositionrat_drugigng:AddElement(element);
        element:SetHotSpot(512, 384);
        element:SetParentElement(compositionrat_drugigng);
        element:SetScaleX(1);
        element:SetScaleY(1);
        element:SetAngle(0);
        element:SetOpacity(1);
    
        effector = element:GetEffector();
        effector:SetLifeTime(0, 40.85);
    
        effector:SetKey(_TRACK_X, 0, 2264);
        effector:SetKey(_TRACK_Y, 0, 603);
        effector:SetKey(_TRACK_X, 0.15, 2264);
        effector:SetKey(_TRACK_Y, 0.15, 603);
        effector:SetKey(_TRACK_X, 0.8, 2342);
        effector:SetKey(_TRACK_Y, 0.8, 603);
        effector:SetKey(_TRACK_X, 1, 2342);
        effector:SetKey(_TRACK_Y, 1, 603);
        effector:SetKey(_TRACK_X, 1.6, 2403);
        effector:SetKey(_TRACK_Y, 1.6, 603);
        effector:SetKey(_TRACK_X, 1.8, 2403);
        effector:SetKey(_TRACK_Y, 1.8, 603);
        effector:SetKey(_TRACK_X, 2.4, 2479);
        effector:SetKey(_TRACK_Y, 2.4, 603);
        effector:SetKey(_TRACK_X, 2.6, 2479);
        effector:SetKey(_TRACK_Y, 2.6, 603);
        effector:SetKey(_TRACK_X, 3.2, 2559);
        effector:SetKey(_TRACK_Y, 3.2, 603);
        effector:SetKey(_TRACK_X, 3.45, 2559);
        effector:SetKey(_TRACK_Y, 3.45, 603);
        effector:SetKey(_TRACK_X, 4, 2650);
        effector:SetKey(_TRACK_Y, 4, 603);
        effector:SetKey(_TRACK_X, 4.25, 2650);
        effector:SetKey(_TRACK_Y, 4.25, 603);
        effector:SetKey(_TRACK_X, 4.8, 2729.9999992352);
        effector:SetKey(_TRACK_Y, 4.8, 603);
        effector:SetKey(_TRACK_X, 5, 2729.9999992352);
        effector:SetKey(_TRACK_Y, 5, 603);
        effector:SetKey(_TRACK_X, 5.6, 2790.9999992352);
        effector:SetKey(_TRACK_Y, 5.6, 603);
        effector:SetKey(_TRACK_X, 5.8, 2790.9999992352);
        effector:SetKey(_TRACK_Y, 5.8, 603);
        effector:SetKey(_TRACK_X, 6.4, 2866.9999992352);
        effector:SetKey(_TRACK_Y, 6.4, 603);
        effector:SetKey(_TRACK_X, 6.6, 2866.9999992352);
        effector:SetKey(_TRACK_Y, 6.6, 603);
        effector:SetKey(_TRACK_X, 7.2, 2946.9999992352);
        effector:SetKey(_TRACK_Y, 7.2, 603);
        effector:SetKey(_TRACK_X, 7.45, 2946.9999992352);
        effector:SetKey(_TRACK_Y, 7.45, 603);
        effector:SetKey(_TRACK_X, 8, 3037.9999992352);
        effector:SetKey(_TRACK_Y, 8, 603);
        effector:SetKey(_TRACK_X, 8.25, 3037.9999992352);
        effector:SetKey(_TRACK_Y, 8.25, 603);
        effector:SetKey(_TRACK_X, 8.85, 3117.99996942574);
        effector:SetKey(_TRACK_Y, 8.85, 603);
        effector:SetKey(_TRACK_X, 9.05, 3117.99996942574);
        effector:SetKey(_TRACK_Y, 9.05, 603);
        effector:SetKey(_TRACK_X, 9.65, 3193.99996942574);
        effector:SetKey(_TRACK_Y, 9.65, 603);
        effector:SetKey(_TRACK_X, 9.85, 3193.99996942574);
        effector:SetKey(_TRACK_Y, 9.85, 603);
        effector:SetKey(_TRACK_X, 10.45, 3273.99996942574);
        effector:SetKey(_TRACK_Y, 10.45, 603);
        effector:SetKey(_TRACK_X, 10.7, 3273.99996942574);
        effector:SetKey(_TRACK_Y, 10.7, 603);
        effector:SetKey(_TRACK_X, 11.25, 3364.99996942574);
        effector:SetKey(_TRACK_Y, 11.25, 603);
        effector:SetKey(_TRACK_X, 11.5, 3364.99996942574);
        effector:SetKey(_TRACK_Y, 11.5, 603);
        effector:SetKey(_TRACK_X, 12.05, 3444.99996866094);
        effector:SetKey(_TRACK_Y, 12.05, 603);
        effector:SetKey(_TRACK_X, 12.25, 3444.99996866094);
        effector:SetKey(_TRACK_Y, 12.25, 603);
        effector:SetKey(_TRACK_X, 12.85, 3505.99996866094);
        effector:SetKey(_TRACK_Y, 12.85, 603);
        effector:SetKey(_TRACK_X, 13.05, 3505.99996866094);
        effector:SetKey(_TRACK_Y, 13.05, 603);
        effector:SetKey(_TRACK_X, 13.65, 3581.99996866094);
        effector:SetKey(_TRACK_Y, 13.65, 603);
        effector:SetKey(_TRACK_X, 13.85, 3581.99996866094);
        effector:SetKey(_TRACK_Y, 13.85, 603);
        effector:SetKey(_TRACK_X, 14.45, 3661.99996866094);
        effector:SetKey(_TRACK_Y, 14.45, 603);
        effector:SetKey(_TRACK_X, 14.7, 3661.99996866094);
        effector:SetKey(_TRACK_Y, 14.7, 603);
        effector:SetKey(_TRACK_X, 15.25, 3752.99996866094);
        effector:SetKey(_TRACK_Y, 15.25, 603);
        effector:SetKey(_TRACK_X, 15.5, 3752.99996866094);
        effector:SetKey(_TRACK_Y, 15.5, 603);
        effector:SetKey(_TRACK_X, 16, 3832.99996866094);
        effector:SetKey(_TRACK_Y, 16, 603);
        effector:SetKey(_TRACK_X, 16.2, 3832.99995531682);
        effector:SetKey(_TRACK_Y, 16.2, 603);
        effector:SetKey(_TRACK_X, 16.8, 3893.99995531682);
        effector:SetKey(_TRACK_Y, 16.8, 603);
        effector:SetKey(_TRACK_X, 17, 3893.99995531682);
        effector:SetKey(_TRACK_Y, 17, 603);
        effector:SetKey(_TRACK_X, 17.6, 3969.99995531682);
        effector:SetKey(_TRACK_Y, 17.6, 603);
        effector:SetKey(_TRACK_X, 17.8, 3969.99995531682);
        effector:SetKey(_TRACK_Y, 17.8, 603);
        effector:SetKey(_TRACK_X, 18.4, 4049.99995531682);
        effector:SetKey(_TRACK_Y, 18.4, 603);
        effector:SetKey(_TRACK_X, 18.65, 4049.99995531682);
        effector:SetKey(_TRACK_Y, 18.65, 603);
        effector:SetKey(_TRACK_X, 19.2, 4140.99995531682);
        effector:SetKey(_TRACK_Y, 19.2, 603);
        effector:SetKey(_TRACK_X, 19.45, 4140.99995531682);
        effector:SetKey(_TRACK_Y, 19.45, 603);
        effector:SetKey(_TRACK_X, 20, 4220.99995455202);
        effector:SetKey(_TRACK_Y, 20, 603);
        effector:SetKey(_TRACK_X, 20.2, 4220.99995455202);
        effector:SetKey(_TRACK_Y, 20.2, 603);
        effector:SetKey(_TRACK_X, 20.8, 4281.99995455202);
        effector:SetKey(_TRACK_Y, 20.8, 603);
        effector:SetKey(_TRACK_X, 21, 4281.99995455202);
        effector:SetKey(_TRACK_Y, 21, 603);
        effector:SetKey(_TRACK_X, 21.6, 4357.99995455202);
        effector:SetKey(_TRACK_Y, 21.6, 603);
        effector:SetKey(_TRACK_X, 21.8, 4357.99995455202);
        effector:SetKey(_TRACK_Y, 21.8, 603);
        effector:SetKey(_TRACK_X, 22.4, 4437.99995455202);
        effector:SetKey(_TRACK_Y, 22.4, 603);
        effector:SetKey(_TRACK_X, 22.65, 4437.99995455202);
        effector:SetKey(_TRACK_Y, 22.65, 603);
        effector:SetKey(_TRACK_X, 23.2, 4528.99995455202);
        effector:SetKey(_TRACK_Y, 23.2, 603);
        effector:SetKey(_TRACK_X, 23.45, 4528.99995455202);
        effector:SetKey(_TRACK_Y, 23.45, 603);
        effector:SetKey(_TRACK_X, 24.05, 4608.99992474256);
        effector:SetKey(_TRACK_Y, 24.05, 603);
        effector:SetKey(_TRACK_X, 24.25, 4608.99992474256);
        effector:SetKey(_TRACK_Y, 24.25, 603);
        effector:SetKey(_TRACK_X, 24.85, 4684.99992474256);
        effector:SetKey(_TRACK_Y, 24.85, 603);
        effector:SetKey(_TRACK_X, 25.05, 4684.99992474256);
        effector:SetKey(_TRACK_Y, 25.05, 603);
        effector:SetKey(_TRACK_X, 25.65, 4764.99992474256);
        effector:SetKey(_TRACK_Y, 25.65, 603);
        effector:SetKey(_TRACK_X, 25.9, 4764.99992474256);
        effector:SetKey(_TRACK_Y, 25.9, 603);
        effector:SetKey(_TRACK_X, 26.45, 4855.99992474256);
        effector:SetKey(_TRACK_Y, 26.45, 603);
        effector:SetKey(_TRACK_X, 26.7, 4855.99992474256);
        effector:SetKey(_TRACK_Y, 26.7, 603);
        effector:SetKey(_TRACK_X, 27.25, 4935.99992397776);
        effector:SetKey(_TRACK_Y, 27.25, 603);
        effector:SetKey(_TRACK_X, 27.45, 4935.99992397776);
        effector:SetKey(_TRACK_Y, 27.45, 603);
        effector:SetKey(_TRACK_X, 28.05, 4996.99992397776);
        effector:SetKey(_TRACK_Y, 28.05, 603);
        effector:SetKey(_TRACK_X, 28.25, 4996.99992397776);
        effector:SetKey(_TRACK_Y, 28.25, 603);
        effector:SetKey(_TRACK_X, 28.85, 5072.99992397776);
        effector:SetKey(_TRACK_Y, 28.85, 603);
        effector:SetKey(_TRACK_X, 29.05, 5072.99992397776);
        effector:SetKey(_TRACK_Y, 29.05, 603);
        effector:SetKey(_TRACK_X, 29.65, 5152.99992397776);
        effector:SetKey(_TRACK_Y, 29.65, 603);
        effector:SetKey(_TRACK_X, 29.9, 5152.99992397776);
        effector:SetKey(_TRACK_Y, 29.9, 603);
        effector:SetKey(_TRACK_X, 30.45, 5243.99992397776);
        effector:SetKey(_TRACK_Y, 30.45, 603);
        effector:SetKey(_TRACK_X, 30.7, 5243.99992397776);
        effector:SetKey(_TRACK_Y, 30.7, 603);
        effector:SetKey(_TRACK_X, 31.2, 5323.99992397776);
        effector:SetKey(_TRACK_Y, 31.2, 603);
    
        effector:Play();
    
        compositionrat_drugigng:Play();
    
        return compositionrat_drugigng;
        
    end
    
    local result = createCompositionrat_drugging();
    --result:SetCyclic(true);
    
    return result;

end