I'm rewriting Era's nickname system, and the code I'm using the show the nickname is:
PHP Code:
with (findImg(i)) {
x = nick_x;
y = 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(i, nick_x, nick_y, $pref::graal::defaultfontname, "bc", nick);
Help?