Thread: Ugh..
View Single Post
  #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)) {
    
x = player.x - 2.5;
    
y = player.y - 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).x = player.x - 2.5;
  
findimg(200).y = player.y - 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.x = player.x - 2.5;
findimg(200).emitter.particle.y = player.y - 1.75; 
__________________
What signature? I see no signature?
Reply With Quote