View Single Post
  #8  
Old 03-14-2010, 06:00 PM
jkldogg jkldogg is offline
J.Rollin (killaz)
jkldogg's Avatar
Join Date: Feb 2010
Location: USA
Posts: 675
jkldogg can only hope to improve
Send a message via AIM to jkldogg Send a message via MSN to jkldogg
sweet

Quote:
Originally Posted by cbk1994 View Post
There are quite a few things wrong with that, I recommend that anyone reading this not look at that code for pointers.

You should do something like this:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
onTimeOut();
}

function 
onTimeOut() {
  
hideimgs(200, 400); // lazy :[
  
  
for (temp.pl : players) {
    
showimg(200 + pl.id, "light2.png", pl.x - 1.5, pl.y - 1.5);
    
changeimgvis(200 + pl.id, 0);
    
changeimgcolors(200 + pl.id, 1, 0, 0, .7);
  }
  
  
setTimer(0.05);
} 
You can play around with the positions, and add a player.attr for the glow colors.
This script is awesome chris.
__________________

PSN: jkldogg



The best post ever made on the graal forums.
After playing Graal Online for many years, JKL decides to make a forum account. Isn't life funny?
Reply With Quote