Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Particle effects (https://forums.graalonline.com/forums/showthread.php?t=65022)

protagonist 03-28-2006 08:35 PM

Particle effects
 
What is wrong with this?
NPC Code:

//#CLIENTSIDE
function onWeaponfired(){
with (findimg(200)) {
x = player.x;
y = player.y;
emitter.delaymin = .5;
emitter.delaymax = 2;
emitter.particle.alpha = .5;
emitter.particle.blue = .5;
emitter.particle.red = .5;
emitter.particle.green = .5;
emitter.particle.angle = 3.14/2;
emitter.particle.maxparticles = 8;
emitter.particle.angle = 2.15;
emitter.particle.lifetime=2;
emitter.particle.movement=8;
emitter.particle.speed=2;
emitter.particle.spin=1;
emitter.particle.zangle=2;
emit();
}
}


Yen 03-28-2006 09:48 PM

Take what I say with a grain of sand, since I'm going by memory, BUT..
I think it's emitter.emit(). Also, I'm not sure if 'movement' is a variable used in emitters.

napo_p2p 03-29-2006 01:16 AM

I am not sure either, but I think emiter.emit() emits one particle (so it isn't needed here, especially with delaymin and delaymax set to those numbers).

I would first try giving the particles an image.

Like: emitter.particle.image = "block.png";


All times are GMT +2. The time now is 01:27 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.