Graal Forums

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

killerogue 06-20-2007 03:33 PM

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.

godofwarares 06-20-2007 04:57 PM

Quote:

Originally Posted by killerogue (Post 1320130)
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


zokemon 06-21-2007 12:41 AM

Quote:

Originally Posted by godofwarares (Post 1320162)
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.


All times are GMT +2. The time now is 02:36 AM.

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