Re: Attaching a MOPixel as an Emitter to an MOPixel Round
You should have searched the forums first. That question was already asked about two hours ago, and was answered. ( By me, by the way.)
Anyway,
Allow me to draw back the curtain...
Code:
function Create(self)
self.timer = Timer();
trail = CreateMOPixel("Plasma Cutter Trail","Apollocalipse.rte");
end
function Update(self)
if self.timer:IsPastSimMS(10) == true then
self.timer:Reset();
trail = CreateMOPixel("Plasma Cutter Trail","Apollocalipse.rte");
trail.Pos = self.Pos;
MovableMan:AddParticle(trail);
end
end
Just replace "plasma cutter trail" with the name of your trail particle, and "Apollocalipse" with the folder of your mod.
EDIT: Also, it's Lua, not LUA.