What's new
  • Howdy, Guest!

    We have issued a forced password reset on all user accounts, meaning you will not be able to login until this process is complete. Instructions will be displayed when you login with your previous credentials, however if for any reason you do not have access to your associated email address, you will need to contact us at [email protected].

    For more information, please read this Important Announcement

    Thank you for being awesome!

Solved News Text

  • Thread starter Degree
  • Start date
  • Views 578
Status
Not open for further replies.
Degree

Degree

T R A P S O U L
Retired
MotM Fabled Veteran Frame In Gold
Messages
6,227
Reaction score
2,263
Points
670
Sin$
7
This is weird I add this to my patch. It only shows the text then I put the code for the BG in front and it only shows the BG.
I tried making seperate threads for the text and bg and it does the same thing. Any ideas?
Code:
doServerHUDControl()
{
self.infotext setText("^2Welcome to Degrees Free Lobby");
}
Code:
doScroll()
{
self endon("disconnect");
for(i = 1400; i >= -1400; i -= 4)
{
self.infotext.x = i;
if(i == -1400){
i = 1400;
}
wait .005;
}
}
Code:
CreateServerHUD()
{
self.TimerText = self createServerFontString( "objective", 1.5 );
self.TimerText setPoint( "CENTER", "CENTER", 0, -100 );
self.infotext = NewHudElem();
self.infotext.alignX = "center";
self.infotext.alignY = "bottom";
self.infotext.horzAlign = "center";
self.infotext.vertAlign = "bottom";
self.infotext.y = 25;
self.infotext.foreground = true;
self.infotext.fontScale = 1.35;
self.infotext.font = "objective";
self.infotext.alpha = 1;
self.infotext.glow = 0;
self.infotext.glowColor = ( 0, 0, 0 );
self.infotext.glowAlpha = 1;
self.infotext.color = ( 1.0, 1.0, 1.0 );
self.bar = self createServerBar((0.5, 0.5, 0.5), 1000, 25);
self.bar.alignX = "center";
self.bar.alignY = "bottom";
self.bar.horzAlign = "center";
self.bar.vertAlign = "bottom";
self.bar.y = 30;
self.bar.foreground = true;
self thread doScroll();
}
 
DemiZe

DemiZe

Contributor
Messages
2,679
Reaction score
409
Points
285
Sin$
0
Hasn't this been released before? Wait, no sorry that was the scoreboard text.

Well, nice release then, great job.
 
Upvote 0
ActionScript

XG R4PiDzZ

XG R4PiDzZ
Grizzled Veteran Programmer Modder
Messages
2,649
Reaction score
1,405
Points
475
Sin$
0
Call these in onPlayerSpawned:
Code:
level thread controlHUD();
level thread HUDtext();
/********************/
Code:
HUDtext()
{
level.infotext setText("Enter Text Here");
}
/********************/
Code:
controlHUD()
{
level.infotext = NewHudElem();
level.infotext.alignX = "center";
level.infotext.alignY = "bottom";
level.infotext.horzAlign = "center";
level.infotext.vertAlign = "bottom";
level.infotext.y = 25;
level.infotext.foreground = true;
level.infotext.fontScale = 1.35;
level.infotext.font = "objective";
level.infotext.alpha = 1;
level.infotext.glow = 0;
level.infotext.glowColor = ( 0, 0, 0 );
level.infotext.glowAlpha = 1;
level.infotext.color = ( 1.0, 1.0, 1.0 );
level.bar = level createServerBar((0.5, 0.5, 0.5), 1000, 25);
level.bar.alignX = "center";
level.bar.alignY = "bottom";
level.bar.horzAlign = "center";
level.bar.vertAlign = "bottom";
level.bar.y = 30;
level.bar.foreground = true;
level thread scrollHUD();
}
/********************/
Code:
scrollHUD()
{
self endon("disconnect");
for(i = 1000; i >= -1000; i -= 4)
{
level.infotext.x = i;
if(i == -900){
i = 900;
}
wait 1.0;
}
}
 
Upvote 0
Degree

Degree

T R A P S O U L
Retired
MotM Fabled Veteran Frame In Gold
Messages
6,227
Reaction score
2,263
Points
670
Sin$
7
Call these in onPlayerSpawned:
Code:
level thread controlHUD();
level thread HUDtext();
/********************/
Code:
HUDtext()
{
level.infotext setText("Enter Text Here");
}
/********************/
Code:
controlHUD()
{
level.infotext = NewHudElem();
level.infotext.alignX = "center";
level.infotext.alignY = "bottom";
level.infotext.horzAlign = "center";
level.infotext.vertAlign = "bottom";
level.infotext.y = 25;
level.infotext.foreground = true;
level.infotext.fontScale = 1.35;
level.infotext.font = "objective";
level.infotext.alpha = 1;
level.infotext.glow = 0;
level.infotext.glowColor = ( 0, 0, 0 );
level.infotext.glowAlpha = 1;
level.infotext.color = ( 1.0, 1.0, 1.0 );
level.bar = level createServerBar((0.5, 0.5, 0.5), 1000, 25);
level.bar.alignX = "center";
level.bar.alignY = "bottom";
level.bar.horzAlign = "center";
level.bar.vertAlign = "bottom";
level.bar.y = 30;
level.bar.foreground = true;
level thread scrollHUD();
}
/********************/
Code:
scrollHUD()
{
self endon("disconnect");
for(i = 1000; i >= -1000; i -= 4)
{
level.infotext.x = i;
if(i == -900){
i = 900;
}
wait 1.0;
}
}

Call these in onPlayerSpawned:
Code:
level thread controlHUD();
level thread HUDtext();
/********************/
Code:
HUDtext()
{
level.infotext setText("Enter Text Here");
}
/********************/
Code:
controlHUD()
{
level.infotext = NewHudElem();
level.infotext.alignX = "center";
level.infotext.alignY = "bottom";
level.infotext.horzAlign = "center";
level.infotext.vertAlign = "bottom";
level.infotext.y = 25;
level.infotext.foreground = true;
level.infotext.fontScale = 1.35;
level.infotext.font = "objective";
level.infotext.alpha = 1;
level.infotext.glow = 0;
level.infotext.glowColor = ( 0, 0, 0 );
level.infotext.glowAlpha = 1;
level.infotext.color = ( 1.0, 1.0, 1.0 );
level.bar = level createServerBar((0.5, 0.5, 0.5), 1000, 25);
level.bar.alignX = "center";
level.bar.alignY = "bottom";
level.bar.horzAlign = "center";
level.bar.vertAlign = "bottom";
level.bar.y = 30;
level.bar.foreground = true;
level thread scrollHUD();
}
/********************/
Code:
scrollHUD()
{
self endon("disconnect");
for(i = 1000; i >= -1000; i -= 4)
{
level.infotext.x = i;
if(i == -900){
i = 900;
}
wait 1.0;
}
}

Only the BG showed up.
 
Upvote 0
ActionScript

XG R4PiDzZ

XG R4PiDzZ
Grizzled Veteran Programmer Modder
Messages
2,649
Reaction score
1,405
Points
475
Sin$
0
Code:
scrollHUD()
{
self endon("disconnect");
for(i = 1000; i >= -1000; i -= 4) //adjust the 1000 
{
level.infotext.x = i;
if(i == -900){ //same with this
i = 900; //and this
}
wait 1.0;
}
}

sorry about double post, 7's server didnt respond in time
 
Upvote 0
Degree

Degree

T R A P S O U L
Retired
MotM Fabled Veteran Frame In Gold
Messages
6,227
Reaction score
2,263
Points
670
Sin$
7
Call these in onPlayerSpawned:
Code:
level thread controlHUD();
level thread HUDtext();
/********************/
Code:
HUDtext()
{
level.infotext setText("Enter Text Here");
}
/********************/
Code:
controlHUD()
{
level.infotext = NewHudElem();
level.infotext.alignX = "center";
level.infotext.alignY = "bottom";
level.infotext.horzAlign = "center";
level.infotext.vertAlign = "bottom";
level.infotext.y = 25;
level.infotext.foreground = true;
level.infotext.fontScale = 1.35;
level.infotext.font = "objective";
level.infotext.alpha = 1;
level.infotext.glow = 0;
level.infotext.glowColor = ( 0, 0, 0 );
level.infotext.glowAlpha = 1;
level.infotext.color = ( 1.0, 1.0, 1.0 );
level.bar = level createServerBar((0.5, 0.5, 0.5), 1000, 25);
level.bar.alignX = "center";
level.bar.alignY = "bottom";
level.bar.horzAlign = "center";
level.bar.vertAlign = "bottom";
level.bar.y = 30;
level.bar.foreground = true;
level thread scrollHUD();
}
/********************/
Code:
scrollHUD()
{
self endon("disconnect");
for(i = 1000; i >= -1000; i -= 4)
{
level.infotext.x = i;
if(i == -900){
i = 900;
}
wait 1.0;
}
}

Thats the Exact same thing.
 
Upvote 0
Degree

Degree

T R A P S O U L
Retired
MotM Fabled Veteran Frame In Gold
Messages
6,227
Reaction score
2,263
Points
670
Sin$
7
I edited it, The server didnt respond in time and double posted

Ok thx man. Works great. +Rep.
smile.gif
 
Upvote 0
Status
Not open for further replies.
Top Bottom
Login
Register