PHP Code:
//#CLIENTSIDE
function onCreated() {
with (findimg(200)) {
x = player.x - 2.5;
y = player.y - 1.75;
layer = 0;
with (emitter) {
delaymin = delaymax = 0;
nrofparticles = 1;
maxparticles = 1;
attachtoowner = true;
with (particle) {
image = "light12.png";
speed = 0;
spin = 1;
alpha = 0.70;
green = 0.7;
red = 0.7;
}
}
}
onTimeout();
}
function onTimeout() {
findimg(200).x = player.x - 2.5;
findimg(200).y = player.y - 1.75;
setTimer(0.05);
}
I've never had a problem with making particles and images following players. EVER. Why is it that it refuses to do that NOW? >_> It seems to warp to the player every 10 seconds or so.