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 06-20-2007, 03:33 PM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Ugh..

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
with (findimg(200)) {
    
player.2.5;
    
player.1.75;
    
layer 0;
    
    
with (emitter) {
      
delaymin delaymax 0;
      
nrofparticles 1;
      
maxparticles 1;
      
attachtoowner true;
      
      
with (particle) {         
        
image "light12.png";
        
        
speed 0;
        
spin 1;
        
        
alpha 0.70;
        
green 0.7;
        
red 0.7;
      }
    }
  }
  
onTimeout();
}

function 
onTimeout() {
  
findimg(200).player.2.5;
  
findimg(200).player.1.75;
  
  
setTimer(0.05);

I've never had a problem with making particles and images following players. EVER. Why is it that it refuses to do that NOW? >_> It seems to warp to the player every 10 seconds or so.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #2  
Old 06-20-2007, 04:57 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by killerogue View Post
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
with (findimg(200)) {
    
player.2.5;
    
player.1.75;
    
layer 0;
    
    
with (emitter) {
      
delaymin delaymax 0;
      
nrofparticles 1;
      
maxparticles 1;
      
attachtoowner true;
      
      
with (particle) {         
        
image "light12.png";
        
        
speed 0;
        
spin 1;
        
        
alpha 0.70;
        
green 0.7;
        
red 0.7;
      }
    }
  }
  
onTimeout();
}

function 
onTimeout() {
  
findimg(200).player.2.5;
  
findimg(200).player.1.75;
  
  
setTimer(0.05);

I've never had a problem with making particles and images following players. EVER. Why is it that it refuses to do that NOW? >_> It seems to warp to the player every 10 seconds or so.
I don't see much of a problem, except that maybe you should try:

PHP Code:
findimg(200).emitter.particle.player.2.5;
findimg(200).emitter.particle.player.1.75
__________________
What signature? I see no signature?
Reply With Quote
  #3  
Old 06-21-2007, 12:41 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by godofwarares View Post
I don't see much of a problem, except that maybe you should try:

PHP Code:
findimg(200).emitter.particle.player.2.5;
findimg(200).emitter.particle.player.1.75
No, it's definitely:
PHP Code:
findimg(200).player.2.5;
findimg(200).player.1.75
Stan, what I always do when I have some weird unknown error with particles is just start commenting out lines until I find out what is causing the abnormal glitch.
__________________
Do it with a DON!
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 06:13 PM.


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