Re: MOPixel won't stay put?
No, if it doesn't change positions, it will still have speed, as long as the velocity is >0.
Currently, self.StartPos and self.StartVel are storing a
reference to self.Pos and self.Vel, respectively. That means every Update, you're essentially doing this:
Code:
self.Pos = self.Pos;
self.Vel = self.Vel;
Lua is a bit weird like that. To do what you want, set the variables like so:
Code:
self.StartPos = Vector(self.Pos.X, self.Pos.Y);
self.StartVel = Vector(self.Vel.X, self.Vel.Y);