Graal Forums  

Go Back   Graal Forums > Development Forums > Gani Construction
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 11-26-2005, 05:51 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Malinko
Good way to ruin an idea for Kingdoms.
How is that ruining an idea?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #17  
Old 11-28-2005, 01:21 AM
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
I had been using a gani with a particle effect in a projectile.
However, the particles didn't follow the projectile's z. Is this a bug?
Can anyone check this out for me?
Reply With Quote
  #18  
Old 11-28-2005, 02:44 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
You have set the z value of the showimg/findimg ?
Reply With Quote
  #19  
Old 11-29-2005, 10:39 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
Yes, I tried updating the z with findimg. It still emitted at 0.
Reply With Quote
  #20  
Old 12-13-2005, 12:25 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
I have just recently tried using a particle effect in a gani where the player moves, and I have found that the x and y of the gani stay where the player was and do not follow the player. How do I get the particle effect to stay with the gani and the player? A timeout loop kills the particles, and setting the x and y in the gani makes no difference, please help.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #21  
Old 12-13-2005, 01:48 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Yen/prozac: what is the script that you have used? Remember that you must do "z = playerz"

There is also the new option "attachtoowner" to let the showimg+emitter automatically follow the player/npc/projectile
Reply With Quote
  #22  
Old 12-13-2005, 05:58 AM
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
'attachtoowner' fixed it, thanks!
Reply With Quote
  #23  
Old 12-13-2005, 07:20 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Yes, Thank you again Stefan, here is the code that I put with a text editor after the ANIEND at the end of the file.
It makes little concentric circles around, or following, the player.

PHP Code:
SCRIPT
//#CLIENTSIDE
function onCreated() {
  
with (findimg(200)) {
  
x=playerx;
  
y=playery;
  
z=playerz;
  
attachtoowner true;
  
attachoffset = {0,0,0};
    
layer 2;
    
emitter.continueafterdestroy=true// looks much better!  thank you!
    
emitter.delaymin 0.05;
    
emitter.delaymax 0.1;
    
emitter.nrofparticles 180;
    
emitter.particle.lifetime 1;
    
emitter.particle.image "icemateria.gif"//or whatever image you like
    
emitter.particle.mode 1;
    
emitter.particle.alpha .4;
    
emitter.particle.red 1;
    
emitter.particle.green 1;
    
emitter.particle.blue 1;
    
emitter.particle.zoom .5;
    
emitter.particle.angle pi 2;
    
emitter.particle.spin=2.18;
    
emitter.particle.speed 5;
    
emitter.addlocalmodifier("once"00"angle""add", -5,5);
    
emitter.addlocalmodifier("range"01"alpha""replace",.4.01);
    
emitter.addlocalmodifier("range"01"zoom""replace",.5.01);
  }
}
SCRIPTEND 
However, even if I modify the x and y to be the player's x+1.5 and playery+1.5, that makes no difrence. the center of the emitter is still at the player's x and y.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such

Last edited by prozac424242; 12-13-2005 at 07:31 PM..
Reply With Quote
  #24  
Old 12-15-2005, 12:04 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Either you remove the attachoffset = line (it will use the current difference to the player position then), or you set attachoffset to a good value. So either this
PHP Code:
with (findimg(200)) {
  
playerx 1.5;
  
playery 1.5;
  
playerz;
  
attachtoowner true;

or this
PHP Code:
with (findimg(200)) {
  
attachtoowner true;
  
attachoffset = {1.5,1.5,0}; 

The second is the preferred method.
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 Off
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:08 PM.


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