View Single Post
  #1  
Old 10-24-2009, 03:17 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
findImg, style, and a loop

I'm rewriting Era's nickname system, and the code I'm using the show the nickname is:

PHP Code:
  with (findImg(i)) {
    
nick_x;
    
nick_y;
    
    
layer 1;
    
zoom thiso.nickZoom;
    
    
text nick;
    
textshadow true;
    
shadowcolor obj.tmp.nick_shadow;
    
    
font $pref::graal::defaultfontname;
    
style "bc";
  } 
However, the problem is that it will display the style as "bc" (bold and centered) for the first frame (0.05 second loop), then after that, it will always act as if no style is set (not bold, not centered). If I only run the first frame, it will stay bold and centered.

I've found I can place hideimg(i) before re-showing the image, but I'd like to avoid this as it shouldn't be needed.

This code, however, works flawlessly:

PHP Code:
  showText(inick_xnick_y$pref::graal::defaultfontname"bc"nick); 
Help?
__________________
Reply With Quote