What's new

Solved Text overlays when die.(Screenshot to show you)

  • Thread starter mojopanel
  • Start date
  • Views 236
Status
Not open for further replies.
M

OOGauge

Enthusiast
Messages
433
Reaction score
13
Right when you die the text at the top over laps like this:

s1t5bk.png


How do i stop it from doing that.

Thanks :smile:
 
H

Hosav

Enthusiast
Messages
191
Reaction score
10
i'm not sure, i havnt got it for pc but i think you can change the overlay and also delete it... im soon getting it for pc and then i might be able to help yu... but you will probably get help from someone else... :wink:
 
M

OOGauge

Enthusiast
Messages
433
Reaction score
13
Well i am using the PC to test my patch.
 
D

Deany95

Enthusiast
Messages
478
Reaction score
160
Code:
destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}
//Add this anywhere withing the .gsc

Add this in your text thread.

Code:
self thread destroyOnDeath( Text Name );

Example:

Code:
textRight()
{
displayRight = createFontString( "objective", 1.3 );
displayRight setPoint( "TOPRIGHT", "TOPRIGHT", 5, 45 + 250 );
self thread destroyOnDeath( displayRight );  //This is what you need to add to your text threads
for (;;)
{
displayRight setText("TEXT");
wait 4;
displayRight setText("TEXT");
wait 4;
}
}

This basically deletes the displayright text when you die. Modify to your approval.

There is another way but it takes up more coding, this maybe a little advanced for you?
 
Status
Not open for further replies.
Top Bottom