So i'm trying to get this working on delteria dev and i'm needing some help with this code.
Initially this code did exactly what I needed to, than everytime I modify it one way or another it ends up giving me a single image rather than the flame effect i'm shooting for.
NPC Code:
//#CLIENTSIDE
function onTimeout()
{
findImg(200).x = player.x;
findImg(200).y = player.y;
this.setTimer(0.05);
}
function onCreated()
{
findImg(200).x = player.x;
findImg(200).y = player.y;
this.setTimer(0.05);
layer = 3;
with (emitter)
{
delaymin = 0.05;
delaymax = 0.05;
nrofparticles = 6;
maxparticles = 260;
with (particle)
{
angle = pi / 2;
lifetime = 4;
image = "light2s.png";
red = 0.85;
green = 0.09;
blue = 0.03;
alpha = 0.99;
speed = 0.35;
}
addlocalmodifier("impulse", 0, 0, "angle", "add", -0.04, 0.04);
addlocalmodifier("once", 0, 0, "x", "add", 0, 0.65);
addlocalmodifier("range", 0.5, 4, "alpha", "replace", 0.99, 0);
addlocalmodifier("range", 0.4, 4, "zoom", "replace", 0.6, 0);
addlocalmodifier("range", 0.2, 4, "speed", "replace", 0.5, 4);
}
}