Graal Forums

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

Angel_Light 04-27-2006 03:39 AM

Particle help
 
okay 2 questions. How can I make so the particle is draw under the player -_- I've tried layers and drawunderplayer and stuff. Also how can I make so other people see the particles aswell?

The wiki doesnt help much. The wiki really just gives you the command and not a full description T_T

hotrian 04-27-2006 04:05 AM

1 Attachment(s)
1)
NPC Code:
function onCreated(){
showimg(200,"",player.x,player.y);
with (findimg(200)) {
layer = 0;



2) You have to stick it into a gani
(see attachment)
You have to open a Gani file with notepad, or wordpad, or a program alike,
to put a script into it (atleast asfar as I know...)

Please excuse my poor excuse for a Particle Emitter btw
(Not how its coded, just what it does/lookslike ...)

Riot 04-27-2006 04:09 AM

Quote:

Originally Posted by hotrian
NPC Code:
function onCreated(){
showimg(200,"",player.x,player.y);
with (findimg(200)) {
layer = 0;


You may just do
HTML Code:

function onCreated() {
  with (findimg(200)) {
    layer = 0;
    ...
  }
}

The Wiki/Bible is also very helpful for particles: http://wiki.graal.net/index.php/Particle_Engine

Raeiphon 04-27-2006 08:27 AM

The bible fails to present any working examples of the engine in action, it's all basically syntax. I tinkered around with the system from a sample Skyld generously gave me, and I learnt most of what I utilize now from that.

EDIT:

You also dont have to put it in a gani. onWeaponFired() will suffice for that, I believe you'd have to set the localmodifer movex to playerx+1.5 though.

EDITx2:

Also, dont ever put it in onCreated(), as you'll have to remove the npc from every player using it unless you set a toggle.

Angel_Light 04-27-2006 09:39 PM

ok thank you all ^.^ but still. How can I make so other players can see the light effects and particles?

Bl0nkt 04-28-2006 01:03 AM

Gani scripts

Angel_Light 04-28-2006 02:53 AM

ok hmmm :/


All times are GMT +2. The time now is 11:19 AM.

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