<ActorFrame><children>
	<Layer
		Type="Quad"
		OnCommand="Stretchto,-35,13,20,24;blend,noeffect;zwrite,1;rotationz,-20"
		FinishedCommand="linear,.3;Stretchto,-35,24,20,24"
	/>
	<Layer
		File="@Meatboy() .. '/ground.png'"
		OnCommand="y,13;x,-634;zoomx,20;zoomy,.5;customtexturerect,0,0,20,1;texcoordvelocity,4*lvlSpd,0;ztest,1"
		FinishedCommand="texcoordvelocity,0,0"
	/>
	<Layer
		Type="ActorFrame"
		InitCommand="y,1"
		LandMessageCommand="finishtweening;queuecommand,Sprint"
		JumpMessageCommand="%function(self) 
			self:queuecommand('Jump1')
			self:queuecommand('Up'..jump)
			if jump == 1 then self:sleep(.2) self:queuecommand('Jump3') end
			if jump == 2 then self:sleep(.25) self:queuecommand('Jump3') end
			if jump == 3 then self:sleep(.3) self:queuecommand('Jump2') self:sleep(.2) self:queuecommand('Jump3') end
			if jump == 4 then self:sleep(.4) self:queuecommand('Jump2') self:sleep(.2) self:queuecommand('Jump3') end
			if jump == 5 then self:sleep(.3) self:queuecommand('Jump3') self:sleep(.2) self:queuecommand('Jump1') self:sleep(.2) self:queuecommand('Jump3') end
		end"
		FinishedCommand="stoptweening"
		Fail4Command="%function(self) FailMove(self) end"
		Pass1Command="%function(self) if float == 1 then self:sleep(.8) self:queuecommand('Win') end end"
		Fail1Command="%function(self) if float == 1 then self:sleep(.6) self:queuecommand('Fall') end end"
	><children>
		<Layer
			File="@Meatboy() .. '/Animate.xml'"
			InitCommand="queuecommand,Sprint"
			Up1Command="decelerate,.2;addy,-20;accelerate,.2;y,0"
			Up2Command="decelerate,.3;addy,-25;accelerate,.3;y,0"
			Up3Command="decelerate,.4;addy,-35;accelerate,.4;y,0"
			Up4Command="decelerate,.5;addy,-45;accelerate,.5;y,0"
			Up5Command="decelerate,.3;addy,-25;accelerate,.1;addy,5;decelerate,.1;addy,5;accelerate,.1;addy,-5;decelerate,.1;addy,-5;accelerate,.3;y,0"
			Pass2Command="%function(self) self:stoptweening() y = self:GetY() if y < -12 then self:accelerate((-12-y)/300) self:y(-12) self:addx(-6-y/2) else self:queuecommand('Fetus') end end"
			Fail2Command="stoptweening;queuecommand,Splode;queuecommand,Extra"
			Fail4Command="%function(self) self:stoptweening() if self:GetY() > -10 then self:accelerate(.1) elseif self:GetY() > -20 then self:accelerate(.2) else self:accelerate(.3) end self:y(0) end"
			FloatMessageCommand="queuecommand,Reset;y,-15;queuecommand,Jump1;accelerate,.28;y,-30;decelerate,.28;y,-45;queuecommand,Jump3;accelerate,.28;y,-30;decelerate,.285;y,-15;queuecommand,Float"
			WinCommand="stoptweening;linear,.2;y,-5"
			FallCommand="stoptweening;linear,.4;y,25"
		/>
	</children></Layer>
	<ActorFrame Fail2Command="%function() if Pallette() == '' or Pallette() == 'W' then s = math.random(0,7) Sound('meat_death'..s..'.ogg') else s = math.random(0,4) Sound('Retro_death'..s..'.ogg') end end" />

	
	<Layer File="@Meatboy() .. '/jump trail.sprite'" InitCommand="zoom,0" JumpMessageCommand="finishtweening;setstate,1;zoom,.35;x,-16;linear,.3;addx,-72*lvlSpd;sleep,0;zoom,0" />
	<Layer File="@Meatboy() .. '/splash.sprite'" InitCommand="y,3;zoom,0" LandMessageCommand="finishtweening;setstate,1;x,8;zoom,.49;zoomy,.2;linear,.35;addx,-84*lvlSpd" FinishedCommand="stoptweening"/>
	<Layer
		File="Trail.xml"
		OnCommand="queuecommand,Start"
		StartCommand="queuecommand,Go"
		JumpMessageCommand="stoptweening;queuecommand,Stop"
		LandMessageCommand="stoptweening;queuecommand,Start"
		FloatMessageCommand="stoptweening"
		FinishedCommand="stoptweening"
	/>
	<Layer
		File="Trail.xml"
		OnCommand="queuecommand,Start"
		StartCommand="sleep,.15;queuecommand,Go"
		JumpMessageCommand="stoptweening;queuecommand,Stop"
		LandMessageCommand="stoptweening;queuecommand,Start"
		FloatMessageCommand="stoptweening"
		FinishedCommand="stoptweening"
	/>
	<Layer
		File="Trail.xml"
		OnCommand="queuecommand,Start"
		StartCommand="sleep,.3;queuecommand,Go"
		JumpMessageCommand="stoptweening;queuecommand,Stop"
		LandMessageCommand="stoptweening;queuecommand,Start"
		FloatMessageCommand="stoptweening"
		FinishedCommand="stoptweening"
	/>
	<Layer
		File="Trail.xml"
		OnCommand="queuecommand,Start"
		StartCommand="sleep,.45;queuecommand,Go"
		JumpMessageCommand="stoptweening;queuecommand,Stop"
		LandMessageCommand="stoptweening;queuecommand,Start"
		FloatMessageCommand="stoptweening"
		FinishedCommand="stoptweening"
	/>
	<Layer
		File="Trail.xml"
		OnCommand="queuecommand,Start"
		StartCommand="sleep,.6;queuecommand,Go"
		JumpMessageCommand="stoptweening;queuecommand,Stop"
		LandMessageCommand="stoptweening;queuecommand,Start"
		FloatMessageCommand="stoptweening"
		FinishedCommand="stoptweening"
	/>
</children></ActorFrame>