function Create(self)
	self.timer = Timer();
	self.cloudr = 20;
end

function Update(self)
	if self.timer:IsPastSimMS(50) then
		if self.Scale == 1.01 then
			print("Flying!");
			if self:IsDead() ~= true then
				if self.AngularVel ~= 0 then
					self.AngularVel = self.AngularVel / 1.05;
					if self.AngularVel < 1.5 or self.AngularVel > -1.5 then
						self.AngularVel = self.AngularVel * 0.99;
					end
				end

				if self.Pos.X >= SceneMan.SceneWidth then
					self.Pos.X = 0;
				elseif self.Pos.X < 0 then
					self.Pos.X = SceneMan.SceneWidth;
				end

				if UInputMan:KeyPressed(82) == true then
					self.Vel.X = self.Vel.X - 0.5;
				elseif UInputMan:KeyPressed(83) == true then
					self.Vel.X = self.Vel.X + 0.5;
				elseif UInputMan:KeyPressed(82) == false and UInputMan:KeyPressed(82) == false then
					self.Vel.X = self.Vel.X / 1.2;
					if math.abs(self.Vel.X) < 2 then
						self.Vel.X = 0;
					end
				end

				if UInputMan:KeyPressed(84) == true then
					self.Vel.Y = self.Vel.Y + 0.5;
				elseif UInputMan:KeyPressed(85) == true then
					self.Vel.Y = self.Vel.Y - 0.75
				elseif UInputMan:KeyPressed(84) == false and UInputMan:KeyPressed(85) == false then
					self.Vel.Y = self.Vel.Y / 1.2;
					if math.abs(self.Vel.Y) < 2 then
						self.Vel.Y = 0;
					end
				end

				if self.Vel.X > 15 then
					self.Vel.X = 15;
				elseif self.Vel.X < -15 then
					self.Vel.X = -15;
				end

				if self.Vel.Y > 15 then
					self.Vel.Y = 15;
				elseif self.Vel.Y < -15 then
					self.Vel.Y = -15;
				end

				if not self.RotAngle == 0  then
					self.RotAngle = self.RotAngle * 0.99;
				end
				local particle = CreateMOSParticle("Tiny White Glow");
				particle.Vel = Vector(0, 50);
				particle.Pos = Vector(self.Pos.X + math.random(-self.cloudr, self.cloudr), self.Pos.Y + math.random(-self.cloudr, self.cloudr));
				MovableMan:AddParticle(particle);
			end
		end
		self.timer:Reset();
	end
end