Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-28-2006, 08:35 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
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();
}
}

Reply With Quote
  #2  
Old 03-28-2006, 09:48 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
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.
Reply With Quote
  #3  
Old 03-29-2006, 01:16 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
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";
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:42 PM.


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