Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-28-2009, 07:35 AM
Nyght Nyght is offline
Registered User
Join Date: Apr 2009
Posts: 5
Nyght is on a distinguished road
particle effects...

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);
}
}

Reply With Quote
 


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 08:56 PM.


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