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!

Discussion [RELEASEish] News Bar

  • Thread starter Degree
  • Start date
  • Views 4,435
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
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 = 1400; i >= -1400; i -= 4)
{
level.infotext.x = i;
if(i == -1400){
i = 1400;
}
wait .005;
}
}



^^^^ Look @ the bottom. ^^^^
Thx to killingdyl&Lost for pretty much the whole code
Thx to XG R4PiDzZ for help me get it to work.
 
7S Fear

7S Fear

Enthusiast
Messages
1,103
Reaction score
273
Points
165
Sin$
7
I've had this for like 2 months now but different coding and nicer. :wink:
 
Apathy

Apathy

Member
Programmer Modder Hardened Veteran
Messages
3,007
Reaction score
920
Points
455
Sin$
7
Nice Job Degree i had this code but COULD NOT get it to work and you beat me to it :smile:
 
StackOverflow

o0xIBrUnKhOrST

Getting There
Messages
2,257
Reaction score
252
Points
250
Sin$
7
So, what exactly did you do if you got the code from someone else, and someone else helped make it work for you? Not flaming, just wondering.
 
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've had this for like 2 months now but different coding and nicer. :wink:


You could post it.
smile.gif


So, what exactly did you do if you got the code from someone else, and someone else helped make it work for you? Not flaming, just wondering.

It was from that released zombies patch, I gave credit BTW.
smile.gif
Someone said the news text wasn't realeased so I went ahead and posted it so people could have it.
 
ActionScript

XG R4PiDzZ

XG R4PiDzZ
Grizzled Veteran Programmer Modder
Messages
2,649
Reaction score
1,405
Points
475
Sin$
0
Thanks for the credit :smile: And You should mention Lost because he made it in the beginning before the threads got deleted.

Edit: 200th Post :rolleyes:
 
A

aarondiablo

Newbie
Messages
5
Reaction score
0
Points
35
Sin$
0
i added code and i see the area were the text should go, but my text doesnt show up any help?
 
Mila Kunis

II UnLmTd III

Original Coder
Seasoned Veteran Grizzled Veteran
Messages
1,300
Reaction score
163
Points
175
Sin$
7
this isnt even a release ive known this since scrolling text came out
 
ActionScript

XG R4PiDzZ

XG R4PiDzZ
Grizzled Veteran Programmer Modder
Messages
2,649
Reaction score
1,405
Points
475
Sin$
0
This is a newsreel with background. Not just scrolling text
 
T

THIZZLEBOI

Enthusiast
Messages
39
Reaction score
1
Points
55
Sin$
0
I hate to sound like a noob, but this all goes into the "missions.gsc" right?
 
Apathy

Apathy

Member
Programmer Modder Hardened Veteran
Messages
3,007
Reaction score
920
Points
455
Sin$
7
sorry didnt look at the code
Code:
        level thread controlHUD();
level thread HUDtext();
goes into the onPlayerConnect() I BELEIEVE not a 100%
and the rest can be added after onPlayerSpawned() in the missions
 
E

eXtG x DiederiK

Enthusiast
Messages
136
Reaction score
6
Points
70
Sin$
7
could someone just make a video or picture of it, be cause i dont you what it will look like.
 
Apathy

Apathy

Member
Programmer Modder Hardened Veteran
Messages
3,007
Reaction score
920
Points
455
Sin$
7
then why didnt you post it lol
the first news text was WAYYYYYYYYYYYYY long that may be what hes thinking of and also to add to what you said kyle
he didnt say release did he he posted releaseish cause it is to some ppl not everyone was there to get it so its a good post
 
Skrubsy

Skrubsy

Born With Horns
Retired
Mythical Veteran Odysseus' Summit AzzidReign Jr
Messages
6,489
Reaction score
3,522
Points
2,405
Sin$
0
LOL Havent touched mw2 coding in like a month. :frown: if im not mistaken,
Code:
        level thread controlHUD();
level thread HUDtext();
go into onplayerconnect and the rest can just be added into missions.

Please if im wrong someone correct me, im to lazy to boot up my jtag and test
 
ActionScript

XG R4PiDzZ

XG R4PiDzZ
Grizzled Veteran Programmer Modder
Messages
2,649
Reaction score
1,405
Points
475
Sin$
0
LOL Havent touched mw2 coding in like a month. :frown: if im not mistaken,
Code:
        level thread controlHUD();
level thread HUDtext();
go into onplayerconnect and the rest can just be added into missions.

Please if im wrong someone correct me, im to lazy to boot up my jtag and test
add to onPlayerSpawned()
 
S

SulLiVan

Enthusiast
Messages
110
Reaction score
1
Points
60
Sin$
0
just gonna be lazy and ask for a picture or a video ?:tongue: thanks
 
ElipTic Gaming

ElipTic Gaming

Master Sniper
Messages
130
Reaction score
27
Points
85
Sin$
7
Cool, for some reason i didnt no that
 
Status
Not open for further replies.
Top Bottom
Login
Register