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

--// 1.	rename:					" -> '
--// 2. rename:					CreateAnimationEffector -> CreateAnimationEffectorAE
--// 3. remove line:    		screen:SetDuration(movieDuration);
--// 4. add line:				screen = playField;
--// 5. add local variables:    local anim, effector, object;
--// 6. add local variable:		local zOffset = 0.0;
--// 7. correct resources path: data/Texture -> data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening
--// 8. add root object:		parent = CreateRoot(parent);
--// 9.	replace object creating code (LCtrl + LShift + R):
--		...
--	    anim = CreateAnimationByPath('data/Texture/Scenes/01_TempleNearTheSea/Animations/WellSmoke/light1.png');
--	    object = screen:CreateObject('Layer_1', anim, 0, 0, 0, 0, 1, 1);
--	    anim:SetHotSpot(107, 107.5);
--		...
--			with
--		...
--	    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/WellSmoke/light1.png', 'Layer_1', 107, 107.5);
--		...
--//10. replace effector creting code:
--		...
--	    effector = CreateAnimationEffector();
--		...
--			with
--		...
--	    effector = CreateEffector(object);
--		...
--//11. set unique name for global effectors table
--//12. set unique names for layers' names ('xLayer_N')
--//13. add scale factor for z position, replace:
--		...
--	    object:SetZ(zOffset + 39);
--		...
--		with
--		...
--	    object:SetZ(zOffset + 1.0/39.0 * 39);
--		...
--//14. remove life time setting for object: "kolonna.png", "sunduk_mask.png", "cover.png":
--		...
--    effector:SetLifeTime(0, 10.08);

------------------------------------------------------------------------------
--
function auxPlaySarcophagusAnimation()
    assert(sMovieEffectors);
	for i,v in ipairs(sMovieEffectors) do
		v:Play();
	end
end

------------------------------------------------------------------------------
--
function auxSetToFinishSarcophagusAnimation()
    assert(sMovieEffectors);
	for i,v in ipairs(sMovieEffectors) do
		v:SetToFinish();
	end
end

------------------------------------------------------------------------------
--
function auxSetToStartSarcophagusAnimation()
    assert(sMovieEffectors);
	for i,v in ipairs(sMovieEffectors) do
		v:SetToStart();
	end
end

------------------------------------------------------------------------------
--
function auxCreateSarcophagusAnimation(parent)
	-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	--
	local CreateObject = function(parent, textureRes, name, hotSpotX, hotSpotY)
		assert(parent ~= nil);

	    local anim = CreateAnimationByPath(textureRes);
	    anim:SetHotSpot(hotSpotX, hotSpotY);

	    local object = playField:CreateObject(name, anim, 0, 0, 0, 0, 1, 1);
		object:AttachTo(parent);
        object:AssignClippingRect(parent);
		playField:IgnoreOnTestPoint(object:GetName());

		return object;
	end
    --
	local CreateEffector = function(parent)
		assert(parent ~= nil);

	    local effector = CreateAnimationEffectorAE();
	    effector:AttachTo(parent);
		table.insert(sMovieEffectors, effector);

		return effector;
	end
	--
	local CreateRoot = function(parent)
        root = CreateObject(parent, 'data/Texture/dummy.bmp', 'rootSarcophagus', 0.0, 0.0);
        root:AttachTo(parent);
        root:SetXY(-parent:GetAnimation():GetHotX(), -parent:GetAnimation():GetHotY());
        root:AssignClippingRect(parent);
        return root;
	end

	sMovieEffectors = {};
	-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    local movieDuration = 9.8;
--    screen:SetDuration(movieDuration);
--	screen = playField;
	local anim, effector, object;
	local zOffset = 1.5;
	
-- Root	
    parent = CreateRoot(parent);

    -- Layer Layer_1
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/light1.png', 'sLayer_1', 107, 107.5);
    object:SetXY(316.284820556641, 95.1083526611328);
    object:SetZ(zOffset + 1.0/39.0 * 39);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(7.04, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_SX, 7.04, 0.8686730506156);
    effector:SetKey(_TRACK_SY, 7.04, 0.8686730506156);
    effector:SetKey(_TRACK_SX, 10, 2.74181006551948);
    effector:SetKey(_TRACK_SY, 10, 2.74181006551948);
    effector:SetKey(_TRACK_O, 7.04, 0);
    effector:SetKey(_TRACK_O, 7.44, 1);

--    effector:Play();


    -- Layer sLayer_2
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/net.png', 'sLayer_2', 181.5, 297.5);
    object:SetXY(222.5, 209.5);
    object:SetZ(zOffset + 1.0/39.0 * 38);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(5.4, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_SX, 5.4, -0.428571);
    effector:SetKey(_TRACK_SY, 5.4, 0.02689075630252);
    effector:SetKey(_TRACK_SX, 6.56, -0.428571);
    effector:SetKey(_TRACK_SY, 6.56, 0.21473484464931);
    effector:SetKey(_TRACK_SX, 7.16, -0.428571);
    effector:SetKey(_TRACK_SY, 7.16, 0.11764705882353);
    effector:SetKey(_TRACK_O, 6.64, 1);
    effector:SetKey(_TRACK_O, 7.16, 0);

--    effector:Play();


    -- Layer sLayer_3
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/net.png', 'sLayer_3', 181.5, 297.5);
    object:SetXY(412, 209.5);
    object:SetZ(zOffset + 1.0/39.0 * 37);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(5.4, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_SX, 5.4, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 5.4, 0.02689075630252);
    effector:SetKey(_TRACK_SX, 6.56, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 6.56, 0.39159663865546);
    effector:SetKey(_TRACK_SX, 7.16, 0.42857142857143);
    effector:SetKey(_TRACK_SY, 7.16, 0.11764705882353);
    effector:SetKey(_TRACK_O, 6.64, 1);
    effector:SetKey(_TRACK_O, 7.16, 0);

--    effector:Play();


    -- Layer sLayer_4
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_4', 102, 102);
	object:SetZ(zOffset + 36);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(5.72, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 3.8, 752);
    effector:SetKey(_TRACK_Y, 3.8, 177);
    effector:SetKey(_TRACK_X, 5.72, 380);
    effector:SetKey(_TRACK_Y, 5.72, 167);
    effector:SetKey(_TRACK_X, 6.6, 380);
    effector:SetKey(_TRACK_Y, 6.6, 275);
    effector:SetKey(_TRACK_X, 7.36, 380);
    effector:SetKey(_TRACK_Y, 7.36, 363);
    effector:SetKey(_TRACK_SX, 5.72, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 5.72, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 6.6, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 6.6, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 7.36, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 7.36, 1.2843137254902);
    effector:SetKey(_TRACK_O, 5.72, 0);
    effector:SetKey(_TRACK_O, 6, 1);
    effector:SetKey(_TRACK_O, 6.88, 1);
    effector:SetKey(_TRACK_O, 7.36, 0);

--    effector:Play();


    -- Layer sLayer_5
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_5', 102, 102);
  	object:SetZ(zOffset + 35);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(5.76, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 3.84, 702);
    effector:SetKey(_TRACK_Y, 3.84, 176);
    effector:SetKey(_TRACK_X, 5.76, 330);
    effector:SetKey(_TRACK_Y, 5.76, 166);
    effector:SetKey(_TRACK_X, 6.64, 330);
    effector:SetKey(_TRACK_Y, 6.64, 274);
    effector:SetKey(_TRACK_X, 7.4, 330);
    effector:SetKey(_TRACK_Y, 7.4, 362);
    effector:SetKey(_TRACK_SX, 5.76, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 5.76, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 6.64, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 6.64, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 7.4, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 7.4, 1.2843137254902);
    effector:SetKey(_TRACK_O, 5.76, 0);
    effector:SetKey(_TRACK_O, 6.04, 1);
    effector:SetKey(_TRACK_O, 6.92, 1);
    effector:SetKey(_TRACK_O, 7.4, 0);

--    effector:Play();


    -- Layer sLayer_6
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_6', 102, 102);
  	object:SetZ(zOffset + 34);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(5.6, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 3.68, 702);
    effector:SetKey(_TRACK_Y, 3.68, 176);
    effector:SetKey(_TRACK_X, 5.6, 263);
    effector:SetKey(_TRACK_Y, 5.6, 167);
    effector:SetKey(_TRACK_X, 6.48, 263);
    effector:SetKey(_TRACK_Y, 6.48, 275);
    effector:SetKey(_TRACK_X, 7.24, 263);
    effector:SetKey(_TRACK_Y, 7.24, 363);
    effector:SetKey(_TRACK_SX, 5.6, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 5.6, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 6.48, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 6.48, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 7.24, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 7.24, 1.2843137254902);
    effector:SetKey(_TRACK_O, 5.6, 0);
    effector:SetKey(_TRACK_O, 5.88, 1);
    effector:SetKey(_TRACK_O, 6.76, 1);
    effector:SetKey(_TRACK_O, 7.24, 0);

--    effector:Play();


    -- Layer sLayer_7
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/gold_dust.png', 'sLayer_7', 100.5, 60.5);
    object:SetZ(zOffset + 1.0/39.0 * 33);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(7.48, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 7.48, 306);
    effector:SetKey(_TRACK_Y, 7.48, 147);
    effector:SetKey(_TRACK_X, 9.6, 269);
    effector:SetKey(_TRACK_Y, 9.6, 193);
    effector:SetKey(_TRACK_SX, 7.48, 0.62);
    effector:SetKey(_TRACK_SY, 7.48, 0.62);
    effector:SetKey(_TRACK_SX, 9.6, 1.37);
    effector:SetKey(_TRACK_SY, 9.6, 1.37);
    effector:SetKey(_TRACK_O, 7.48, 0);
    effector:SetKey(_TRACK_O, 7.72, 0.58027079503701);
    effector:SetKey(_TRACK_O, 9.08, 0.58027079503701);
    effector:SetKey(_TRACK_O, 9.6, 0);

--    effector:Play();


    -- Layer sLayer_8
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/gold_dust.png', 'sLayer_8', 100.5, 60.5);
    object:SetZ(zOffset + 1.0/39.0 * 32);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(7.64, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 7.64, 264);
    effector:SetKey(_TRACK_Y, 7.64, 72);
    effector:SetKey(_TRACK_X, 9.76, 267);
    effector:SetKey(_TRACK_Y, 9.76, 111);
    effector:SetKey(_TRACK_SX, 7.64, 0.62);
    effector:SetKey(_TRACK_SY, 7.64, 0.62);
    effector:SetKey(_TRACK_SX, 9.76, 1.37);
    effector:SetKey(_TRACK_SY, 9.76, 1.37);
    effector:SetKey(_TRACK_O, 7.64, 0);
    effector:SetKey(_TRACK_O, 7.88, 0.58027079503701);
    effector:SetKey(_TRACK_O, 9.24, 0.58027079503701);
    effector:SetKey(_TRACK_O, 9.76, 0);

--    effector:Play();


    -- Layer sLayer_9
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/gold_dust.png', 'sLayer_9', 100.5, 60.5);
    object:SetZ(zOffset + 1.0/39.0 * 31);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(7.44, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 7.44, 347);
    effector:SetKey(_TRACK_Y, 7.44, 60);
    effector:SetKey(_TRACK_X, 9.56, 382);
    effector:SetKey(_TRACK_Y, 9.56, 61);
    effector:SetKey(_TRACK_SX, 7.44, 0.62);
    effector:SetKey(_TRACK_SY, 7.44, 0.62);
    effector:SetKey(_TRACK_SX, 9.56, 1.37);
    effector:SetKey(_TRACK_SY, 9.56, 1.37);
    effector:SetKey(_TRACK_O, 7.44, 0);
    effector:SetKey(_TRACK_O, 7.68, 0.58027079503701);
    effector:SetKey(_TRACK_O, 9.04, 0.58027079503701);
    effector:SetKey(_TRACK_O, 9.56, 0);

--    effector:Play();


    -- Layer sLayer_10
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/gold_dust.png', 'sLayer_10', 100.5, 60.5);
    object:SetZ(zOffset + 1.0/39.0 * 30);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(6.96, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 6.96, 314);
    effector:SetKey(_TRACK_Y, 6.96, 109);
    effector:SetKey(_TRACK_X, 9.08, 315);
    effector:SetKey(_TRACK_Y, 9.08, 164);
    effector:SetKey(_TRACK_SX, 6.96, 0.62);
    effector:SetKey(_TRACK_SY, 6.96, 0.62);
    effector:SetKey(_TRACK_SX, 9.08, 1.37);
    effector:SetKey(_TRACK_SY, 9.08, 1.37);
    effector:SetKey(_TRACK_O, 6.96, 0);
    effector:SetKey(_TRACK_O, 7.2, 0.58027079503701);
    effector:SetKey(_TRACK_O, 8.56, 0.58027079503701);
    effector:SetKey(_TRACK_O, 9.08, 0);

--    effector:Play();


    -- Layer sLayer_11
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/gold_dust.png', 'sLayer_11', 100.5, 60.5);
    object:SetZ(zOffset + 1.0/39.0 * 29);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(6.56, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 6.56, 261);
    effector:SetKey(_TRACK_Y, 6.56, 108);
    effector:SetKey(_TRACK_X, 8.68, 214);
    effector:SetKey(_TRACK_Y, 8.68, 140);
    effector:SetKey(_TRACK_SX, 6.56, 0.62);
    effector:SetKey(_TRACK_SY, 6.56, 0.62);
    effector:SetKey(_TRACK_SX, 8.68, 1.37);
    effector:SetKey(_TRACK_SY, 8.68, 1.37);
    effector:SetKey(_TRACK_O, 6.56, 0);
    effector:SetKey(_TRACK_O, 6.8, 0.58027079503701);
    effector:SetKey(_TRACK_O, 8.16, 0.58027079503701);
    effector:SetKey(_TRACK_O, 8.68, 0);

--    effector:Play();


    -- Layer sLayer_12
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/gold_dust.png', 'sLayer_12', 100.5, 60.5);
    object:SetZ(zOffset + 1.0/39.0 * 28);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(6.28, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 6.28, 351);
    effector:SetKey(_TRACK_Y, 6.28, 131);
    effector:SetKey(_TRACK_X, 8.4, 404);
    effector:SetKey(_TRACK_Y, 8.4, 132);
    effector:SetKey(_TRACK_SX, 6.28, 0.62);
    effector:SetKey(_TRACK_SY, 6.28, 0.62);
    effector:SetKey(_TRACK_SX, 8.4, 1.37);
    effector:SetKey(_TRACK_SY, 8.4, 1.37);
    effector:SetKey(_TRACK_O, 6.28, 0);
    effector:SetKey(_TRACK_O, 6.52, 0.58027079503701);
    effector:SetKey(_TRACK_O, 7.88, 0.58027079503701);
    effector:SetKey(_TRACK_O, 8.4, 0);

--    effector:Play();


    -- Layer sLayer_13
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/gold_dust.png', 'sLayer_13', 100.5, 60.5);
    object:SetZ(zOffset + 1.0/39.0 * 27);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(6.12, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 6.12, 339);
    effector:SetKey(_TRACK_Y, 6.12, 190);
    effector:SetKey(_TRACK_X, 8.24, 382);
    effector:SetKey(_TRACK_Y, 8.24, 239);
    effector:SetKey(_TRACK_SX, 6.12, 0.62);
    effector:SetKey(_TRACK_SY, 6.12, 0.62);
    effector:SetKey(_TRACK_SX, 8.24, 1.37);
    effector:SetKey(_TRACK_SY, 8.24, 1.37);
    effector:SetKey(_TRACK_O, 6.12, 0);
    effector:SetKey(_TRACK_O, 6.36, 0.58027079503701);
    effector:SetKey(_TRACK_O, 7.72, 0.58027079503701);
    effector:SetKey(_TRACK_O, 8.24, 0);

--    effector:Play();


    -- Layer sLayer_14
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/gold_dust.png', 'sLayer_14', 100.5, 60.5);
    object:SetZ(zOffset + 1.0/39.0 * 26);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(5.6, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 5.6, 319);
    effector:SetKey(_TRACK_Y, 5.6, 193);
    effector:SetKey(_TRACK_X, 7.72, 290);
    effector:SetKey(_TRACK_Y, 7.72, 241);
    effector:SetKey(_TRACK_SX, 5.6, 0.62);
    effector:SetKey(_TRACK_SY, 5.6, 0.62);
    effector:SetKey(_TRACK_SX, 7.72, 1.37);
    effector:SetKey(_TRACK_SY, 7.72, 1.37);
    effector:SetKey(_TRACK_O, 5.6, 0);
    effector:SetKey(_TRACK_O, 5.84, 0.58027079503701);
    effector:SetKey(_TRACK_O, 7.2, 0.58027079503701);
    effector:SetKey(_TRACK_O, 7.72, 0);

--    effector:Play();


    -- Layer sLayer_15
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_15', 102, 102);
  	object:SetZ(zOffset + 25);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(3.28, 4.96);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 1.36, 702);
    effector:SetKey(_TRACK_Y, 1.36, 176);
    effector:SetKey(_TRACK_X, 3.28, 616);
    effector:SetKey(_TRACK_Y, 3.28, 176);
    effector:SetKey(_TRACK_X, 4.16, 616);
    effector:SetKey(_TRACK_Y, 4.16, 284);
    effector:SetKey(_TRACK_X, 4.92, 616);
    effector:SetKey(_TRACK_Y, 4.92, 372);
    effector:SetKey(_TRACK_SX, 3.28, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 3.28, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 4.16, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 4.16, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 4.92, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 4.92, 1.2843137254902);
    effector:SetKey(_TRACK_O, 3.28, 0);
    effector:SetKey(_TRACK_O, 3.56, 1);
    effector:SetKey(_TRACK_O, 4.44, 1);
    effector:SetKey(_TRACK_O, 4.92, 0);

--    effector:Play();


    -- Layer sLayer_16
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_16', 102, 102);
  	object:SetZ(zOffset + 24);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(3, 4.68);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 3, 655);
    effector:SetKey(_TRACK_Y, 3, 176);
    effector:SetKey(_TRACK_X, 3.88, 655);
    effector:SetKey(_TRACK_Y, 3.88, 284);
    effector:SetKey(_TRACK_X, 4.64, 655);
    effector:SetKey(_TRACK_Y, 4.64, 372);
    effector:SetKey(_TRACK_SX, 3, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 3, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 3.88, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 3.88, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 4.64, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 4.64, 1.2843137254902);
    effector:SetKey(_TRACK_O, 3, 0);
    effector:SetKey(_TRACK_O, 3.28, 1);
    effector:SetKey(_TRACK_O, 4.16, 1);
    effector:SetKey(_TRACK_O, 4.64, 0);

--    effector:Play();


    -- Layer sLayer_17
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_17', 102, 102);
  	object:SetZ(zOffset + 23);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(2.6, 4.28);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 2.6, 611);
    effector:SetKey(_TRACK_Y, 2.6, 176);
    effector:SetKey(_TRACK_X, 3.48, 611);
    effector:SetKey(_TRACK_Y, 3.48, 284);
    effector:SetKey(_TRACK_X, 4.24, 611);
    effector:SetKey(_TRACK_Y, 4.24, 372);
    effector:SetKey(_TRACK_SX, 2.6, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 2.6, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 3.48, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 3.48, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 4.24, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 4.24, 1.2843137254902);
    effector:SetKey(_TRACK_O, 2.6, 0);
    effector:SetKey(_TRACK_O, 2.88, 1);
    effector:SetKey(_TRACK_O, 3.76, 1);
    effector:SetKey(_TRACK_O, 4.24, 0);

--    effector:Play();


    -- Layer sLayer_18
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_18', 102, 102);
  	object:SetZ(zOffset + 22);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(2.28, 3.96);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 2.28, 573);
    effector:SetKey(_TRACK_Y, 2.28, 176);
    effector:SetKey(_TRACK_X, 3.16, 573);
    effector:SetKey(_TRACK_Y, 3.16, 284);
    effector:SetKey(_TRACK_X, 3.92, 573);
    effector:SetKey(_TRACK_Y, 3.92, 372);
    effector:SetKey(_TRACK_SX, 2.28, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 2.28, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 3.16, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 3.16, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 3.92, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 3.92, 1.2843137254902);
    effector:SetKey(_TRACK_O, 2.28, 0);
    effector:SetKey(_TRACK_O, 2.56, 1);
    effector:SetKey(_TRACK_O, 3.44, 1);
    effector:SetKey(_TRACK_O, 3.92, 0);

--    effector:Play();


    -- Layer sLayer_19
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_19', 102, 102);
  	object:SetZ(zOffset + 21);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(1.96, 3.64);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 1.96, 529);
    effector:SetKey(_TRACK_Y, 1.96, 176);
    effector:SetKey(_TRACK_X, 2.84, 529);
    effector:SetKey(_TRACK_Y, 2.84, 284);
    effector:SetKey(_TRACK_X, 3.6, 529);
    effector:SetKey(_TRACK_Y, 3.6, 372);
    effector:SetKey(_TRACK_SX, 1.96, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 1.96, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 2.84, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 2.84, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 3.6, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 3.6, 1.2843137254902);
    effector:SetKey(_TRACK_O, 1.96, 0);
    effector:SetKey(_TRACK_O, 2.24, 1);
    effector:SetKey(_TRACK_O, 3.12, 1);
    effector:SetKey(_TRACK_O, 3.6, 0);

--    effector:Play();


    -- Layer sLayer_20
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_20', 102, 102);
  	object:SetZ(zOffset + 20);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(1.64, 3.32);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 1.64, 481);
    effector:SetKey(_TRACK_Y, 1.64, 176);
    effector:SetKey(_TRACK_X, 2.52, 481);
    effector:SetKey(_TRACK_Y, 2.52, 284);
    effector:SetKey(_TRACK_X, 3.28, 481);
    effector:SetKey(_TRACK_Y, 3.28, 372);
    effector:SetKey(_TRACK_SX, 1.64, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 1.64, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 2.52, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 2.52, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 3.28, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 3.28, 1.2843137254902);
    effector:SetKey(_TRACK_O, 1.64, 0);
    effector:SetKey(_TRACK_O, 1.92, 1);
    effector:SetKey(_TRACK_O, 2.8, 1);
    effector:SetKey(_TRACK_O, 3.28, 0);

--    effector:Play();


    -- Layer sLayer_21
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_21', 102, 102);
  	object:SetZ(zOffset + 19);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(1.32, 3);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 1.32, 433);
    effector:SetKey(_TRACK_Y, 1.32, 176);
    effector:SetKey(_TRACK_X, 2.2, 433);
    effector:SetKey(_TRACK_Y, 2.2, 284);
    effector:SetKey(_TRACK_X, 2.96, 433);
    effector:SetKey(_TRACK_Y, 2.96, 372);
    effector:SetKey(_TRACK_SX, 1.32, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 1.32, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 2.2, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 2.2, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 2.96, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 2.96, 1.2843137254902);
    effector:SetKey(_TRACK_O, 1.32, 0);
    effector:SetKey(_TRACK_O, 1.6, 1);
    effector:SetKey(_TRACK_O, 2.48, 1);
    effector:SetKey(_TRACK_O, 2.96, 0);

--    effector:Play();


    -- Layer sLayer_22
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_22', 102, 102);
  	object:SetZ(zOffset + 18);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(1, 2.68);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 1, 395);
    effector:SetKey(_TRACK_Y, 1, 176);
    effector:SetKey(_TRACK_X, 1.88, 395);
    effector:SetKey(_TRACK_Y, 1.88, 284);
    effector:SetKey(_TRACK_X, 2.64, 395);
    effector:SetKey(_TRACK_Y, 2.64, 372);
    effector:SetKey(_TRACK_SX, 1, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 1, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 1.88, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 1.88, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 2.64, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 2.64, 1.2843137254902);
    effector:SetKey(_TRACK_O, 1, 0);
    effector:SetKey(_TRACK_O, 1.28, 1);
    effector:SetKey(_TRACK_O, 2.16, 1);
    effector:SetKey(_TRACK_O, 2.64, 0);

--    effector:Play();


    -- Layer sLayer_23
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_23', 102, 102);
  	object:SetZ(zOffset + 17);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(0.72, 2.4);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 0.72, 348);
    effector:SetKey(_TRACK_Y, 0.72, 176);
    effector:SetKey(_TRACK_X, 1.6, 348);
    effector:SetKey(_TRACK_Y, 1.6, 284);
    effector:SetKey(_TRACK_X, 2.36, 348);
    effector:SetKey(_TRACK_Y, 2.36, 372);
    effector:SetKey(_TRACK_SX, 0.72, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 0.72, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 1.6, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 1.6, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 2.36, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 2.36, 1.2843137254902);
    effector:SetKey(_TRACK_O, 0.72, 0);
    effector:SetKey(_TRACK_O, 1, 1);
    effector:SetKey(_TRACK_O, 1.88, 1);
    effector:SetKey(_TRACK_O, 2.36, 0);

--    effector:Play();


    -- Layer sLayer_24
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_24', 102, 102);
  	object:SetZ(zOffset + 16);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(0.48, 2.16);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 0.48, 301);
    effector:SetKey(_TRACK_Y, 0.48, 206);
    effector:SetKey(_TRACK_X, 1.36, 301);
    effector:SetKey(_TRACK_Y, 1.36, 314);
    effector:SetKey(_TRACK_X, 2.12, 301);
    effector:SetKey(_TRACK_Y, 2.12, 402);
    effector:SetKey(_TRACK_SX, 0.48, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 0.48, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 1.36, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 1.36, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 2.12, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 2.12, 1.2843137254902);
    effector:SetKey(_TRACK_O, 0.48, 0);
    effector:SetKey(_TRACK_O, 0.76, 1);
    effector:SetKey(_TRACK_O, 1.64, 1);
    effector:SetKey(_TRACK_O, 2.12, 0);

--    effector:Play();


    -- Layer sLayer_25
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_25', 102, 102);
  	object:SetZ(zOffset + 15);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(2.8, 4.48);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 2.8, 524);
    effector:SetKey(_TRACK_Y, 2.8, 176);
    effector:SetKey(_TRACK_X, 3.68, 524);
    effector:SetKey(_TRACK_Y, 3.68, 284);
    effector:SetKey(_TRACK_X, 4.44, 524);
    effector:SetKey(_TRACK_Y, 4.44, 372);
    effector:SetKey(_TRACK_SX, 2.8, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 2.8, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 3.68, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 3.68, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 4.44, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 4.44, 1.2843137254902);
    effector:SetKey(_TRACK_O, 2.8, 0);
    effector:SetKey(_TRACK_O, 3.08, 1);
    effector:SetKey(_TRACK_O, 3.96, 1);
    effector:SetKey(_TRACK_O, 4.44, 0);

--    effector:Play();


    -- Layer sLayer_26
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_26', 102, 102);
  	object:SetZ(zOffset + 14);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(2.52, 4.2);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 2.52, 477);
    effector:SetKey(_TRACK_Y, 2.52, 176);
    effector:SetKey(_TRACK_X, 3.4, 477);
    effector:SetKey(_TRACK_Y, 3.4, 284);
    effector:SetKey(_TRACK_X, 4.16, 477);
    effector:SetKey(_TRACK_Y, 4.16, 372);
    effector:SetKey(_TRACK_SX, 2.52, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 2.52, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 3.4, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 3.4, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 4.16, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 4.16, 1.2843137254902);
    effector:SetKey(_TRACK_O, 2.52, 0);
    effector:SetKey(_TRACK_O, 2.8, 1);
    effector:SetKey(_TRACK_O, 3.68, 1);
    effector:SetKey(_TRACK_O, 4.16, 0);

--    effector:Play();


    -- Layer sLayer_27
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_27', 102, 102);
  	object:SetZ(zOffset + 13);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(2.12, 3.8);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 2.12, 433);
    effector:SetKey(_TRACK_Y, 2.12, 176);
    effector:SetKey(_TRACK_X, 3, 433);
    effector:SetKey(_TRACK_Y, 3, 284);
    effector:SetKey(_TRACK_X, 3.76, 433);
    effector:SetKey(_TRACK_Y, 3.76, 372);
    effector:SetKey(_TRACK_SX, 2.12, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 2.12, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 3, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 3, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 3.76, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 3.76, 1.2843137254902);
    effector:SetKey(_TRACK_O, 2.12, 0);
    effector:SetKey(_TRACK_O, 2.4, 1);
    effector:SetKey(_TRACK_O, 3.28, 1);
    effector:SetKey(_TRACK_O, 3.76, 0);

--    effector:Play();


    -- Layer sLayer_28
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_28', 102, 102);
  	object:SetZ(zOffset + 12);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(1.8, 3.48);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 1.8, 395);
    effector:SetKey(_TRACK_Y, 1.8, 176);
    effector:SetKey(_TRACK_X, 2.68, 395);
    effector:SetKey(_TRACK_Y, 2.68, 284);
    effector:SetKey(_TRACK_X, 3.44, 395);
    effector:SetKey(_TRACK_Y, 3.44, 372);
    effector:SetKey(_TRACK_SX, 1.8, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 1.8, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 2.68, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 2.68, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 3.44, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 3.44, 1.2843137254902);
    effector:SetKey(_TRACK_O, 1.8, 0);
    effector:SetKey(_TRACK_O, 2.08, 1);
    effector:SetKey(_TRACK_O, 2.96, 1);
    effector:SetKey(_TRACK_O, 3.44, 0);

--    effector:Play();


    -- Layer sLayer_29
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_29', 102, 102);
  	object:SetZ(zOffset + 11);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(1.48, 3.16);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 1.48, 351);
    effector:SetKey(_TRACK_Y, 1.48, 176);
    effector:SetKey(_TRACK_X, 2.36, 351);
    effector:SetKey(_TRACK_Y, 2.36, 284);
    effector:SetKey(_TRACK_X, 3.12, 351);
    effector:SetKey(_TRACK_Y, 3.12, 372);
    effector:SetKey(_TRACK_SX, 1.48, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 1.48, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 2.36, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 2.36, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 3.12, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 3.12, 1.2843137254902);
    effector:SetKey(_TRACK_O, 1.48, 0);
    effector:SetKey(_TRACK_O, 1.76, 1);
    effector:SetKey(_TRACK_O, 2.64, 1);
    effector:SetKey(_TRACK_O, 3.12, 0);

--    effector:Play();


    -- Layer sLayer_30
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_30', 102, 102);
  	object:SetZ(zOffset + 10);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(1.16, 2.84);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 1.16, 303);
    effector:SetKey(_TRACK_Y, 1.16, 176);
    effector:SetKey(_TRACK_X, 2.04, 303);
    effector:SetKey(_TRACK_Y, 2.04, 284);
    effector:SetKey(_TRACK_X, 2.8, 303);
    effector:SetKey(_TRACK_Y, 2.8, 372);
    effector:SetKey(_TRACK_SX, 1.16, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 1.16, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 2.04, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 2.04, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 2.8, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 2.8, 1.2843137254902);
    effector:SetKey(_TRACK_O, 1.16, 0);
    effector:SetKey(_TRACK_O, 1.44, 1);
    effector:SetKey(_TRACK_O, 2.32, 1);
    effector:SetKey(_TRACK_O, 2.8, 0);

--    effector:Play();


    -- Layer sLayer_31
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_31', 102, 102);
  	object:SetZ(zOffset + 9);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(0.84, 2.52);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 0.84, 255);
    effector:SetKey(_TRACK_Y, 0.84, 176);
    effector:SetKey(_TRACK_X, 1.72, 255);
    effector:SetKey(_TRACK_Y, 1.72, 284);
    effector:SetKey(_TRACK_X, 2.48, 255);
    effector:SetKey(_TRACK_Y, 2.48, 372);
    effector:SetKey(_TRACK_SX, 0.84, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 0.84, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 1.72, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 1.72, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 2.48, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 2.48, 1.2843137254902);
    effector:SetKey(_TRACK_O, 0.84, 0);
    effector:SetKey(_TRACK_O, 1.12, 1);
    effector:SetKey(_TRACK_O, 2, 1);
    effector:SetKey(_TRACK_O, 2.48, 0);

--    effector:Play();


    -- Layer sLayer_32
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_32', 102, 102);
  	object:SetZ(zOffset + 8);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(0.52, 2.2);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 0.52, 217);
    effector:SetKey(_TRACK_Y, 0.52, 176);
    effector:SetKey(_TRACK_X, 1.4, 217);
    effector:SetKey(_TRACK_Y, 1.4, 284);
    effector:SetKey(_TRACK_X, 2.16, 217);
    effector:SetKey(_TRACK_Y, 2.16, 372);
    effector:SetKey(_TRACK_SX, 0.52, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 0.52, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 1.4, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 1.4, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 2.16, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 2.16, 1.2843137254902);
    effector:SetKey(_TRACK_O, 0.52, 0);
    effector:SetKey(_TRACK_O, 0.8, 1);
    effector:SetKey(_TRACK_O, 1.68, 1);
    effector:SetKey(_TRACK_O, 2.16, 0);

--    effector:Play();


    -- Layer sLayer_33
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_33', 102, 102);
  	object:SetZ(zOffset + 7);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(0.24, 1.92);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 0.24, 170);
    effector:SetKey(_TRACK_Y, 0.24, 176);
    effector:SetKey(_TRACK_X, 1.12, 170);
    effector:SetKey(_TRACK_Y, 1.12, 284);
    effector:SetKey(_TRACK_X, 1.88, 170);
    effector:SetKey(_TRACK_Y, 1.88, 372);
    effector:SetKey(_TRACK_SX, 0.24, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 0.24, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 1.12, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 1.12, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 1.88, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 1.88, 1.2843137254902);
    effector:SetKey(_TRACK_O, 0.24, 0);
    effector:SetKey(_TRACK_O, 0.52, 1);
    effector:SetKey(_TRACK_O, 1.4, 1);
    effector:SetKey(_TRACK_O, 1.88, 0);

--    effector:Play();


    -- Layer sLayer_34
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust3.png', 'sLayer_34', 102, 102);
  	object:SetZ(zOffset + 6);
    object:SetAngle(0);

    effector = CreateEffector(object);
    effector:SetLifeTime(0, 1.68);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 0, 123);
    effector:SetKey(_TRACK_Y, 0, 206);
    effector:SetKey(_TRACK_X, 0.88, 123);
    effector:SetKey(_TRACK_Y, 0.88, 314);
    effector:SetKey(_TRACK_X, 1.64, 123);
    effector:SetKey(_TRACK_Y, 1.64, 402);
    effector:SetKey(_TRACK_SX, 0, 0.38235294117647);
    effector:SetKey(_TRACK_SY, 0, 0.09803921568627);
    effector:SetKey(_TRACK_SX, 0.88, 0.94117647058823);
    effector:SetKey(_TRACK_SY, 0.88, 0.86274509803922);
    effector:SetKey(_TRACK_SX, 1.64, 1.2843137254902);
    effector:SetKey(_TRACK_SY, 1.64, 1.2843137254902);
    effector:SetKey(_TRACK_O, 0, 0);
    effector:SetKey(_TRACK_O, 0.28, 1);
    effector:SetKey(_TRACK_O, 1.16, 1);
    effector:SetKey(_TRACK_O, 1.64, 0);

--    effector:Play();


    -- Layer sLayer_35
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/dust.png', 'sLayer_35', 514, 514);
  	object:SetXY(321, 240);
    object:SetZ(zOffset + 1.0/39.0 * 5);
    object:SetAngle(0);
    object:SetOpacity(1);

    effector = CreateEffector(object);
    effector:SetLifeTime(0, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_SX, 0, 1);
    effector:SetKey(_TRACK_SY, 0, 1);
    effector:SetKey(_TRACK_SX, 10.04, 1.35);
    effector:SetKey(_TRACK_SY, 10.04, 1.35);

--    effector:Play();


    -- Layer sLayer_36
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/cover.png', 'sLayer_36', 258, 112);
  	object:SetZ(zOffset + 4);
    object:SetScaleX(1);
    object:SetScaleY(1);
    object:SetOpacity(1);
    
    effector = CreateEffector(object);
--    effector:SetLifeTime(0, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 0, 291.322906494141);
    effector:SetKey(_TRACK_Y, 0, 204.495025634766);
    effector:SetKey(_TRACK_X, 3.72, 610.184921264648);
    effector:SetKey(_TRACK_Y, 3.72, 204.495025634766);
    effector:SetKey(_TRACK_X, 4.28, 657.297302246094);
    effector:SetKey(_TRACK_Y, 4.28, 240.68278503418);
    effector:SetKey(_TRACK_X, 5.44, 670.953063964844);
    effector:SetKey(_TRACK_Y, 5.44, 251.607391357422);
    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 3.48, 0);
    effector:SetKey(_TRACK_A, 3.72, 0.27582920275912);
    effector:SetKey(_TRACK_A, 4.28, 0.6419465527827);
    
    
--    effector:Play();


    -- Layer sLayer_37
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/sunduk_mask.png', 'sLayer_37', 80, 115);
  	object:SetXY(311.075393676758, 320.203414916992);
    object:SetZ(zOffset + 1.0/39.0 * 3);
    object:SetScaleX(1);
    object:SetScaleY(1);
    object:SetAngle(0);
    object:SetOpacity(1);

    effector = CreateEffector(object);
--    effector:SetLifeTime(0, 10.08);
    effector:AttachTo(object);


--    effector:Play();


    -- Layer sLayer_38
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/kolonna.png', 'keyPlatform', 67, 87.5);
    object:SetZ(zOffset + 1.0/39.0 * 2);
    object:SetScaleX(1);
    object:SetScaleY(1);
    object:SetAngle(0);
    object:SetOpacity(1);

    effector = CreateEffector(object);
--    effector:SetLifeTime(0, 10.08);
    effector:AttachTo(object);

    effector:SetKey(_TRACK_X, 5.36, 314.537689208984);
    effector:SetKey(_TRACK_Y, 5.36, 350.735412597656);
    effector:SetKey(_TRACK_X, 6.96, 314.537689208984);
    effector:SetKey(_TRACK_Y, 6.96, 193.978897094727);
    effector:SetKey(_TRACK_X, 7.76, 314.537689208984);
    effector:SetKey(_TRACK_Y, 7.76, 189.978897094727);

--    effector:Play();


    -- Layer key
--    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/key.png', 'key', 75, 33);
--object:AttachTo(l38);
--object:SetY(-115.0);
--  	object:SetZ(zOffset + 1)	;
--    object:SetScaleX(1);
--    object:SetScaleY(1);
--    object:SetAngle(0);
--    object:SetOpacity(1);
--
--    effector = CreateEffector(object);
--    effector:SetLifeTime(0, 10.08);
--    effector:AttachTo(object);
--[[
    effector:SetKey(_TRACK_X, 5.36, 67);
    effector:SetKey(_TRACK_Y, 5.36, -27.1491851806641);
    effector:SetKey(_TRACK_X, 6.96, 67);
    effector:SetKey(_TRACK_Y, 6.96, -18.1491851806641);
    effector:SetKey(_TRACK_X, 7.76, 67);
    effector:SetKey(_TRACK_Y, 7.76, -17.1491851806641);
--]]
--    effector:Play();

    -- Layer sLayer_40
--[[
    object = CreateObject(parent, 'data/Texture/Scenes/01_TempleNearTheSea/Animations/SarcophagusOpening/zoom1.jpg', 'sLayer_40', 320, 240);
  	object:SetXY(320, 240);
    object:SetZ(zOffset + 1.0/39.0 * 0);
    object:SetScaleX(1);
    object:SetScaleY(1);
    object:SetAngle(0);
    object:SetOpacity(1);

    effector = CreateEffector(object);
    effector:SetLifeTime(0, 10.08);
    effector:AttachTo(object);


--    effector:Play();
--]]
    auxSetToStartSarcophagusAnimation();
end
