Z
zy0n
Enthusiast
Example usage:
Thread this on spawn, or whenever you want the text to appear.
make sure this is at the top of the .gsc you place this into.
Place this within your chosen .gsc.
Thread this on spawn, or whenever you want the text to appear.
Code:
self thread scrollReel("Zy0N is BEAST", (1,1,1), 20);
make sure this is at the top of the .gsc you place this into.
Code:
#include maps\_hud_util;
Place this within your chosen .gsc.
Code:
scrollReel(text, color, speed)
{
self endon("death");
self endon("disconnect");
bg = makeBG( 1000, 20, -200, -19, color );
disp = createFontString("default", 1, self);
disp setPoint("TOPCENTER", undefined, 2000, -16);
disp setText(text);
disp DOD(self);
bg DOD(self);
disp.hideWhenInMenu = true;
r = text.size*9.23;
l = text.size*-7.69;
for(;;)
{
disp setPoint("TOPCENTER", undefined, r, -17);
disp setPoint("TOPCENTER", undefined, l, -17, speed);
wait speed;
}
}
DOD(parent)
{
parent waittill("death");
self destroy();
}
makeBG(width, height, xpos, ypos, color)
{
bg = createBar( color, width, height );
bg setPoint("TOPLEFT", undefined, xpos, ypos);
return bg;
}